Sha256: be4c128dbee72607cff390f4d523d75968fc21696b550684240d05c91f0d7a1f

Contents?: true

Size: 765 Bytes

Versions: 2

Compression:

Stored size: 765 Bytes

Contents

Then /^I should see the header "([^\"]*)"$/ do |header|
  response.should have_tag('h1,h2', :text => /#{header}/)
end

Then /^I should see a table where a row contains the cells? "([^\"]*)"$/ do |cells|
  response.should have_tag('table') do |table|
    table.should have_tag('tr') do |tr|
      cells.split(/\s*,\s*/).each do |cell|
        tr.should have_tag('td,th', :text => /#{Regexp.escape(cell)}/)
      end
    end
  end
end

Then /^I should see a table with the headers "([^\"]*)"$/ do |headers|
  response.should have_tag('table') do |table|
    headers.split(/\s*,\s*/).each do |header|
      table.should have_tag('th', :text => /#{Regexp.escape(header)}/)
    end
  end
end

Given /^I enter the address of the feature page$/ do
  visit '/features'
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jnicklas-courgette-0.0.2 features/step_definitions/courgette_steps.rb
jnicklas-courgette-0.0.3 features/step_definitions/courgette_steps.rb