Typo in the current site feature.

This commit is contained in:
Mario Visic 2011-09-17 22:31:50 +08:00
parent 03b6649742
commit aa21cea13b
2 changed files with 2 additions and 3 deletions

View File

@ -35,8 +35,7 @@ Background:
And I should see "Access points" And I should see "Access points"
And I should not see the role dropdown on myself And I should not see the role dropdown on myself
And I should not see the role dropdown on the "admin" And I should not see the role dropdown on the "admin"
And I should see the role dropdown on the "author" And I should see the role dropdown on the "author" without the "Administrator" option
And I should not the role dropdown on the "author" without the "Administrator" option
And I should not see delete on the "admin" And I should not see delete on the "admin"
And I should not see delete on myself And I should not see delete on myself
And I should see delete on the "author" And I should see delete on the "author"

View File

@ -2,7 +2,7 @@ Then /^I should see the role dropdown on the "([^"]*)"$/ do |user|
find(:css, "li.membership[data-role=#{user}] select").should be_present find(:css, "li.membership[data-role=#{user}] select").should be_present
end end
Then /^I should not the role dropdown on the "([^"]*)" without the "([^"]*)" option$/ do |user, option| Then /^I should see the role dropdown on the "([^"]*)" without the "([^"]*)" option$/ do |user, option|
find(:css, "li.membership[data-role=#{user}] select").text.should_not include option find(:css, "li.membership[data-role=#{user}] select").text.should_not include option
end end