Created
September 24, 2014 12:33
-
-
Save gajus/32a61ea65183c4584682 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('A Cart with a several different products', function () { | |
var cart; | |
beforeEach(function () { | |
cart = Cart.create(); | |
}); | |
it('must have a #grossPriceSum() of the contained products', function () { | |
var product = Product.create('A', 10), | |
book = Book.create('B', 100); | |
cart.add(product); | |
cart.add(book); | |
expect(cart.grossPriceSum()).toEqual(132); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment