Sha256: 22e9372eed7dbc04d6f666f687473f8f2fa1b5e37ed34c64b71c8e0a4ce1d0f5

Contents?: true

Size: 868 Bytes

Versions: 35

Compression:

Stored size: 868 Bytes

Contents

Given /^"([^\"]*)" feature is "([^\"]*)"$/ do |feature, state|
  if state == "enabled"
    Middleman::Server.activate(feature.to_sym)
  end
  @browser = Rack::Test::Session.new(Rack::MockSession.new(Middleman::Server.new))
end

Given /^the Server is running$/ do
  @browser = Rack::Test::Session.new(Rack::MockSession.new(Middleman::Server.new))
end

When /^I go to "([^\"]*)"$/ do |url|
  @browser.get(url)
end

Then /^I should see "([^\"]*)"$/ do |expected|
  @browser.last_response.body.should include(expected)
end
Then /^I should see '([^\']*)'$/ do |expected|
  @browser.last_response.body.should include(expected)
end

Then /^I should not see "([^\"]*)"$/ do |expected|
  @browser.last_response.body.should_not include(expected)
end

Then /^I should see "([^\"]*)" lines$/ do |lines|
  @browser.last_response.body.chomp.split($/).length.should == lines.to_i
end

Version data entries

35 entries across 35 versions & 2 rubygems

Version Path
beans-middleman-1.0.14 features/step_definitions/middleman_steps.rb
beans-middleman-1.0.13 features/step_definitions/middleman_steps.rb
beans-middleman-1.0.12 features/step_definitions/middleman_steps.rb
beans-middleman-1.0.11 features/step_definitions/middleman_steps.rb
beans-middleman-1.0.9 features/step_definitions/middleman_steps.rb
middleman-1.2.0 features/step_definitions/middleman_steps.rb
middleman-1.1.6 features/step_definitions/middleman_steps.rb
middleman-1.1.5 features/step_definitions/middleman_steps.rb
middleman-1.1.4 features/step_definitions/middleman_steps.rb
middleman-1.1.3 features/step_definitions/middleman_steps.rb
middleman-1.1.2 features/step_definitions/middleman_steps.rb
middleman-1.1.1.a features/step_definitions/middleman_steps.rb
middleman-1.1.0.1 features/step_definitions/middleman_steps.rb
middleman-1.1.0.beta.8 features/step_definitions/middleman_steps.rb
middleman-1.1.0.beta.7 features/step_definitions/middleman_steps.rb
middleman-1.1.0.beta.6 features/step_definitions/middleman_steps.rb
middleman-1.1.0.beta.5 features/step_definitions/middleman_steps.rb
beans-middleman-1.0.8 features/step_definitions/middleman_steps.rb
beans-middleman-1.0.7 features/step_definitions/middleman_steps.rb
beans-middleman-1.0.6 features/step_definitions/middleman_steps.rb