Sha256: 63404c0290e1d4ef0e2bc599ba9708b2131806c2ec1884131fb89396c7dd29e1

Contents?: true

Size: 828 Bytes

Versions: 12

Compression:

Stored size: 828 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

12 entries across 12 versions & 3 rubygems

Version Path
activeadmin-0.6.6 features/step_definitions/index_scope_steps.rb
activeadmin-0.6.5 features/step_definitions/index_scope_steps.rb
activeadmin-0.6.4 features/step_definitions/index_scope_steps.rb
yousty-activeadmin-1.0.4.pre features/step_definitions/index_scope_steps.rb
yousty-activeadmin-1.0.3.pre features/step_definitions/index_scope_steps.rb
yousty-activeadmin-1.0.2.pre features/step_definitions/index_scope_steps.rb
activeadmin-0.6.3 features/step_definitions/index_scope_steps.rb
yousty-activeadmin-1.0.1.pre features/step_definitions/index_scope_steps.rb
yousty-activeadmin-1.0.0.pre features/step_definitions/index_scope_steps.rb
activeadmin-0.6.2 features/step_definitions/index_scope_steps.rb
activeadmin-0.6.1 features/step_definitions/index_scope_steps.rb
aa-rails4-0.6.0 features/step_definitions/index_scope_steps.rb