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
activeadmin-0.3.4 features/step_definitions/attribute_steps.rb
activeadmin-0.3.3 features/step_definitions/attribute_steps.rb
activeadmin-0.3.2 features/step_definitions/attribute_steps.rb
activeadmin-0.3.1 features/step_definitions/attribute_steps.rb
activeadmin-0.3.0 features/step_definitions/attribute_steps.rb
nsm-activeadmin-0.2.2 features/step_definitions/attribute_steps.rb