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