Sha256: bb1df7dcd6e1965d048d0f54b1b571a9c54938124be121580f76afa65f5602f7
Contents?: true
Size: 934 Bytes
Versions: 1
Compression:
Stored size: 934 Bytes
Contents
Then /^I should( not)? see the scope "([^"]*)"( selected)?$/ do |negate, name, selected| should = "I should#{' not' if negate}" scope = ".scopes#{' .selected' if selected}" step %{#{should} see "#{name}" within "#{scope}"} end Then /^I should see the scope "([^"]*)" not selected$/ do |name| step %{I should see the scope "#{name}"} expect(page).to_not have_css '.scopes .selected', text: name end Then /^I should see the scope "([^"]*)" with the count (\d+)$/ do |name, count| name = name.tr(' ','').underscore.downcase step %{I should see "#{count}" within ".scopes .#{name} .count"} end Then /^I should see the scope with label "([^"]*)"$/ do |label| expect(page).to have_link(label) end Then /^I should see the scope "([^"]*)" with no count$/ do |name| name = name.tr(" ", "").underscore.downcase expect(page).to have_css ".scopes .#{name}" expect(page).to_not have_css ".scopes .#{name} .count" end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
activeadmin-1.0.0.pre5 | features/step_definitions/index_scope_steps.rb |