Skip to content

Commit

Permalink
renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
pyricau committed Sep 20, 2013
1 parent d2ef0fd commit b95a53e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/test/java/com/squareup/shipfaster/cart/CartTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ public class CartTest {
//cart = new Cart(settings);
}

@Test public void can_buy_banana_with_card() {
@Test public void can_swipe_card_when_accepts_credit_cards() {
when(settings.acceptsCreditCards()).thenReturn(true);

cart.addItem(Item.newFakeItem());
assertThat(cart.canSwipeCard()).isTrue();
}

@Test public void auth_when_swipe_success() {
@Test public void pay_on_swipe_success() {
prepareCanSwipe();

cart.onSwipe(new SwipeEvent(true, Card.fakeCard()));
Expand All @@ -51,7 +51,7 @@ public class CartTest {
assertThat(intent.getComponent().getClassName()).isEqualTo(PaymentActivity.class.getName());
}

@Test public void no_auth_when_swipe_failed() {
@Test public void no_pay_on_swipe_failed() {
prepareCanSwipe();

cart.onSwipe(new SwipeEvent(false, null));
Expand Down

0 comments on commit b95a53e

Please sign in to comment.