Skip to content

Instantly share code, notes, and snippets.

@agibralter
Created December 26, 2008 03:27
Show Gist options
  • Save agibralter/39999 to your computer and use it in GitHub Desktop.
Save agibralter/39999 to your computer and use it in GitHub Desktop.
it "should display the enter link" do
helper.actions_for(@context).should have_tag('a', 'enter')
end
it "should not display the join link" do
helper.actions_for(@context).should_not have_tag('a', 'join')
end
it "should not display the cancel link" do
helper.actions_for(@context).should_not have_tag('a', 'cancel')
end
it "should not display the decline link" do
helper.actions_for(@context).should_not have_tag('a', 'decline')
end
can this be DRYed up to be:
it_should_only_display 'enter'
it_should_only_display 'decline'
etc.?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment