Created
October 3, 2011 22:30
-
-
Save daveworth/1260437 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
describe "Setup link visibility" do | |
["basic", "advanced"].each do |role| | |
it "should not be visible to #{role}s", :driver => :rack_test do | |
login_as(role.to_sym) do | |
visit root_path | |
page.should_not have_content("MailChimp Setup") | |
end | |
end | |
end | |
["owner", "admin"].each do |role| | |
it "should be visible to #{role}s", :driver => :rack_test do | |
login_as(role.to_sym) do | |
visit root_path | |
page.should have_content("MailChimp Setup") | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment