Created
August 18, 2011 20:04
-
-
Save bionicpill/1155036 to your computer and use it in GitHub Desktop.
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 characters
describe Tour do | |
describe '#each' do | |
it "should be enumerable on it's request_showings" do | |
t = Factory(:tour) | |
3.times do | |
t.request_showings.create(:property => Factory(:property)) | |
end | |
t.count.should be 3 | |
t.request_showings.each do |e| | |
t.include?(e).should be_true | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment