Sha256: 557a81d35a2bfa954aea028ad96d38fbf6011d1ac7fbb10c94a455da1059261e

Contents?: true

Size: 825 Bytes

Versions: 5

Compression:

Stored size: 825 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}"}
  page.should_not have_css('.scopes .selected', text: name)
end

Then /^I should see the scope "([^"]*)" with the count (\d+)$/ do |name, count|
  name = name.gsub(' ','').underscore.downcase
  step %{I should see "#{count}" within ".scopes .#{name} .count"}
end

Then /^I should see the scope "([^"]*)" with no count$/ do |name|
  name = name.gsub(" ", "").underscore.downcase
  page.should     have_css(".scopes .#{name}")
  page.should_not have_css(".scopes .#{name} .count")
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
active_administration-0.0.3 features/step_definitions/index_scope_steps.rb
activeadministration-0.0.2 features/step_definitions/index_scope_steps.rb
active_administration-0.0.2 features/step_definitions/index_scope_steps.rb
activeadministration-0.0.1 features/step_definitions/index_scope_steps.rb
active_administration-0.0.1 features/step_definitions/index_scope_steps.rb