Sha256: ab59497e5a6a02484b7fa52fac7ed8f16b728207e30912d1fdcc953323a5ab03

Contents?: true

Size: 575 Bytes

Versions: 12

Compression:

Stored size: 575 Bytes

Contents

Then /^I should see the attribute "([^"]*)" with "([^"]*)"$/ do |title, value|
  elems = all ".attributes_table th:contains('#{title}') ~ td:contains('#{value}')"
  elems.first.should_not be_nil, 'attribute missing'
end

Then /^I should see the attribute "([^"]*)" with a nicely formatted datetime$/ do |title|
  text = all(".attributes_table th:contains('#{title}') ~ td").first.text
  text.should match /\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

12 entries across 12 versions & 3 rubygems

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