Created
December 26, 2008 03:27
-
-
Save agibralter/39999 to your computer and use it in GitHub Desktop.
This file contains 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
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