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.141 vendor/deps/active_admin/features/step_definitions/attribute_steps.rb
lalala-4.0.0.dev.136 vendor/deps/active_admin/features/step_definitions/attribute_steps.rb
lalala-4.0.0.dev.135 vendor/deps/active_admin/features/step_definitions/attribute_steps.rb
lalala-4.0.0.dev.134 vendor/deps/active_admin/features/step_definitions/attribute_steps.rb
lalala-4.0.0.dev.133 vendor/deps/active_admin/features/step_definitions/attribute_steps.rb
lalala-4.0.0.dev.132 vendor/deps/active_admin/features/step_definitions/attribute_steps.rb
lalala-4.0.0.dev.131 vendor/deps/active_admin/features/step_definitions/attribute_steps.rb
lalala-4.0.0.dev.129 vendor/deps/active_admin/features/step_definitions/attribute_steps.rb
lalala-4.0.0.dev.128 vendor/deps/active_admin/features/step_definitions/attribute_steps.rb
lalala-4.0.0.dev.126 vendor/deps/active_admin/features/step_definitions/attribute_steps.rb
lalala-4.0.0.dev.125 vendor/deps/active_admin/features/step_definitions/attribute_steps.rb
lalala-4.0.0.dev.124 vendor/deps/active_admin/features/step_definitions/attribute_steps.rb
lalala-4.0.0.dev.123 vendor/deps/active_admin/features/step_definitions/attribute_steps.rb
lalala-4.0.0.dev.118 vendor/deps/active_admin/features/step_definitions/attribute_steps.rb
lalala-4.0.0.dev.116 vendor/deps/active_admin/features/step_definitions/attribute_steps.rb
lalala-4.0.0.dev.114 vendor/deps/active_admin/features/step_definitions/attribute_steps.rb
lalala-4.0.0.dev.113 vendor/deps/active_admin/features/step_definitions/attribute_steps.rb
lalala-4.0.0.dev.111 vendor/deps/active_admin/features/step_definitions/attribute_steps.rb
lalala-4.0.0.dev.109 vendor/deps/active_admin/features/step_definitions/attribute_steps.rb
lalala-4.0.0.dev.107 vendor/deps/active_admin/features/step_definitions/attribute_steps.rb