Sha256: 806094c24599449f8d5c11ef458c35fcade28f566c9ab53d9a5c8581f981e4fd

Contents?: true

Size: 705 Bytes

Versions: 4

Compression:

Stored size: 705 Bytes

Contents

Then /^the "([^"]*)" sidebar should contain:$/ do |which, table|
  table.hashes.each do |hash|
    step 'the "%s" sidebar should contain "%s"' % [which, hash['title']]
  end
end

Then /^the "([^"]*)" sidebar should not contain:$/ do |which, table|
  table.hashes.each do |hash|
    step 'the "%s" sidebar should not contain "%s"' % [which, hash['title']]
  end
end

Then /^the "([^"]*)" sidebar should contain "([^"]*)"$/ do |which, content|
  id = "sidebar-#{which.gsub(/ /, '-')}"
  find('#'+id).should have_content(content)
end

Then /^the "([^"]*)" sidebar should not contain "([^"]*)"$/ do |which, content|
  id = "sidebar-#{which.gsub(/ /, '-')}"
  find('#'+id).should_not have_content(content)
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mist-0.6.3 features/step_definitions/sidebar_steps.rb
mist-0.6.2 features/step_definitions/sidebar_steps.rb
mist-0.6.1 features/step_definitions/sidebar_steps.rb
mist-0.6.0 features/step_definitions/sidebar_steps.rb