Sha256: e576c784ca7739ca729ee86a032a872a8354d348f997b18750814a8513215609

Contents?: true

Size: 755 Bytes

Versions: 3

Compression:

Stored size: 755 Bytes

Contents

include Helpers

When /^I start the server on port (\d+)$/ do |port|
  start_server port
end

When /^I stop the server$/ do
  stop_server unless @server.nil?
end

Given /^the server is running$/ do
  start_server(3000)
end

Given /^the server is not running$/ do
  stop_server unless @server.nil?
  @server = nil
end

Given /^the file "([^"]*)" exist$/ do |file|
  testfile_exists?(file).should be_true
end

Given /^the file "([^"]*)" does not exist$/ do |file|
  testfile_exists?(file).should be_false
end

When /^I log "([^"]*)"$/ do |message|
  @server.log message
end

When /^I debug "([^"]*)"$/ do |message|
  @server.debug message
end

Then /^I should see "([^"]*)"$/ do |message|
  $console.contains? message
end

Then /^Pry$/ do
  binding.pry
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
yarn-0.1.0 features/step_definitions/server_steps.rb
yarn-0.0.9 features/step_definitions/server_steps.rb
yarn-0.0.2 features/step_definitions/server_steps.rb