Created
March 16, 2012 12:08
-
-
Save rauchy/2049794 to your computer and use it in GitHub Desktop.
Revisions
-
rauchy revised this gist
Mar 16, 2012 . 2 changed files with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -5,7 +5,7 @@ subject.visited_attractions_count.should == 1 end it "doesn't increase the visited attractions count after several visits" do 5.times { subject.visit('Rome') } subject.visited_attractions_count.should_not > 1 end This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -5,7 +5,7 @@ subject.visited_attractions_count.should == 1 end it "doesn't increase the visited attractions count after several visits" do 5.times { subject.visit('Rome') } subject.visited_attractions_count.should == 1 end -
rauchy revised this gist
Mar 16, 2012 . 3 changed files with 26 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ describe User do describe '#visit' do it 'increases the visited attractions count after one visit' do subject.visit('Rome') subject.visited_attractions_count.should == 1 end it 'doesn't increase the visited attractions count after several visits' do 5.times { subject.visit('Rome') } subject.visited_attractions_count.should_not > 1 end end end File renamed without changes.This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ describe User do describe '#visit' do it 'increases the visited attractions count after one visit' do subject.visit('Rome') subject.visited_attractions_count.should == 1 end it 'doesn't increase the visited attractions count after several visits' do 5.times { subject.visit('Rome') } subject.visited_attractions_count.should == 1 end end end -
rauchy created this gist
Mar 16, 2012 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ class User def visit(attraction) # ... end def visited_attractions_count # ... end end