Skip to content

Instantly share code, notes, and snippets.

@banker
Created February 25, 2009 17:57
Show Gist options
  • Save banker/70318 to your computer and use it in GitHub Desktop.
Save banker/70318 to your computer and use it in GitHub Desktop.
context "A new group" do
setup do
@group = Factory(:group)
end
context "with an added entry" do
setup do
@entry = Factory(:entry, :title => "WEB", :group => @group)
@group.reload
end
should "add an entry to the group"
assert @group.entries.include?(@entry)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment