Sha256: d871e2386879cd9d8df279486ada3a1c59468f34093a4035b677df3c28394b7d

Contents?: true

Size: 749 Bytes

Versions: 11

Compression:

Stored size: 749 Bytes

Contents

When /^I view "([^"]*)"$/ do |path|
  visit path
end

Then /^the page should load$/ do
  page.status_code.should == 200
end

Then /^the page should return a (\d+) error$/ do |status|
  page.status_code.should == status.to_i
end

Then /^the page content should be:$/ do |content|
  page.source.should == content
end

Then /^the headline should be "([^"]*)"$/ do |headline|
  page.should have_css "h1", :text => headline
end

Then /^the body text should be "([^"]*)"$/ do |body|
  page.should have_css "p", :text => body
end

Then /^the page title should be "([^"]*)"$/ do |title|
  page.should have_css "head title", :text => title
end

Then /^the page header should be "([^"]*)"$/ do |header|
  page.should have_css "header h1", :text => header
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
noumenon-0.2.2 features/step_definitions/request_steps.rb
noumenon-0.2.1 features/step_definitions/request_steps.rb
noumenon-0.2.0 features/step_definitions/request_steps.rb
noumenon-0.1.7 features/step_definitions/request_steps.rb
noumenon-0.1.6 features/step_definitions/request_steps.rb
noumenon-0.1.5 features/step_definitions/request_steps.rb
noumenon-0.1.4 features/step_definitions/request_steps.rb
noumenon-0.1.3 features/step_definitions/request_steps.rb
noumenon-0.1.2 features/step_definitions/request_steps.rb
noumenon-0.1.1 features/step_definitions/request_steps.rb
noumenon-0.1.0 features/step_definitions/request_steps.rb