Skip to content

Instantly share code, notes, and snippets.

@robotarmy
Created June 15, 2010 22:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robotarmy/439862 to your computer and use it in GitHub Desktop.
Save robotarmy/439862 to your computer and use it in GitHub Desktop.
describe ‘Fans Are Callable By Bands” do
it “band has a fan” do
a = Fan.create(:name => ‘Peter’ , :phone => ‘1231231’)
b = Band.find_by_name(’Rolling Stones’)
b.fans << a
b.save
a.reload
a.bands.should include b
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment