Sha256: 6e2fd523bcc1dc79b4584727c7d727727483a2c7cab998a4ff55c01e3d35397f

Contents?: true

Size: 589 Bytes

Versions: 66

Compression:

Stored size: 589 Bytes

Contents

Then /^I should see the attribute "([^"]*)" with "([^"]*)"$/ do |title, value|
  page.should have_css('.attributes_table th', :text => title)
  page.should have_css('.attributes_table td', :text => value)
end

Then /^I should see the attribute "([^"]*)" with a nicely formatted datetime$/ do |title|
  th = page.find('.attributes_table th', :text => title)
  page.find(:xpath, th.path.gsub(/th$/, 'td')).text.should =~ /\w+ \d{1,2}, \d{4} \d{2}:\d{2}/
end

Then /^I should not see the attribute "([^"]*)"$/ do |title|
  page.should_not have_css('.attributes_table th', :text => title)
end

Version data entries

66 entries across 66 versions & 4 rubygems

Version Path
lalala-4.0.0.dev.94 vendor/deps/active_admin/features/step_definitions/attribute_steps.rb
lalala-4.0.0.dev.92 vendor/deps/active_admin/features/step_definitions/attribute_steps.rb
lalala-4.0.0.dev.90 vendor/deps/active_admin/features/step_definitions/attribute_steps.rb
lalala-4.0.0.dev.84 vendor/deps/active_admin/features/step_definitions/attribute_steps.rb
lalala-4.0.0.dev.80 vendor/deps/active_admin/features/step_definitions/attribute_steps.rb
lalala-4.0.0.dev.79 vendor/deps/active_admin/features/step_definitions/attribute_steps.rb
lalala-4.0.0.dev.78 vendor/deps/active_admin/features/step_definitions/attribute_steps.rb
lalala-4.0.0.dev.77 vendor/deps/active_admin/features/step_definitions/attribute_steps.rb
lalala-4.0.0.dev.74 vendor/deps/active_admin/features/step_definitions/attribute_steps.rb
lalala-4.0.0.dev.73 vendor/deps/active_admin/features/step_definitions/attribute_steps.rb
lalala-4.0.0.dev.72 vendor/deps/active_admin/features/step_definitions/attribute_steps.rb
lalala-4.0.0.dev.71 vendor/deps/active_admin/features/step_definitions/attribute_steps.rb
lalala-4.0.0.dev.66 vendor/deps/active_admin/features/step_definitions/attribute_steps.rb
lalala-4.0.0.dev.65 vendor/deps/active_admin/features/step_definitions/attribute_steps.rb
activeadmin-0.6.0 features/step_definitions/attribute_steps.rb
lalala-4.0.0.dev.64 vendor/deps/active_admin/features/step_definitions/attribute_steps.rb
lalala-4.0.0.dev.63 vendor/deps/active_admin/features/step_definitions/attribute_steps.rb
lalala-4.0.0.dev.62 vendor/deps/active_admin/features/step_definitions/attribute_steps.rb
lalala-4.0.0.dev.61 vendor/deps/active_admin/features/step_definitions/attribute_steps.rb
lalala-4.0.0.dev.60 vendor/deps/active_admin/features/step_definitions/attribute_steps.rb