From 012cefc5587261697b73fce0536530fce304dde3 Mon Sep 17 00:00:00 2001 From: "Jesse C. Fisher" Date: Tue, 4 Aug 2015 19:01:02 -0700 Subject: [PATCH] organize spec comments --- spec/features/plays_spec.rb | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/spec/features/plays_spec.rb b/spec/features/plays_spec.rb index 5c1adbb..322655d 100644 --- a/spec/features/plays_spec.rb +++ b/spec/features/plays_spec.rb @@ -12,6 +12,10 @@ feature 'Play a hand', type: :feature do # When I play a hand containing the lowest card # Then I see a successful play message scenario 'first play contains lowest card' do + # create game with players + # current_player plays hand containing lowest card + # expect successful play message + # TODO: extract game setup to a factory game = FactoryGirl.create :game user1 = FactoryGirl.create :user @@ -26,12 +30,11 @@ feature 'Play a hand', type: :feature do check @card_to_play.to_s click_button 'Play Hand' expect(page).to have_content('Played ' + game.lowest_card.to_s) - # create game with players - # current_player plays hand containing lowest card - # expect successful play message end scenario 'first play does not contain lowest card' do + # current_player plays hand not containing lowest card + # expect unsuccessful play message hand MUST contain lowest card game = FactoryGirl.create :game user1 = FactoryGirl.create :user user2 = FactoryGirl.create :user @@ -46,8 +49,6 @@ feature 'Play a hand', type: :feature do click_button 'Play Hand' expect(page).to have_content "First hand must contain the lowest card: #{game.lowest_card.to_s}" - # current_player plays hand not containing lowest card - # expect unsuccessful play message hand MUST contain lowest card end # Scenario: Player can play a valid hand on their turn