Sha256: 35cd68d4d2360ab8f384e2958efffb66c56a5eb44b0cf0bd529436a3fddbc9a2

Contents?: true

Size: 914 Bytes

Versions: 9

Compression:

Stored size: 914 Bytes

Contents

require File.join(File.dirname(__FILE__), "shared_steps")

Given /^the project "([^\"]*)"$/ do |project|
  @project = project
end

Given /^the card number "([^\"]*)"$/ do |card_number|
  if @options
    @options << [card_number]
  else
    @options = [card_number]
  end
end

Given /^a keyword of "([^\"]*)"$/ do |keyword|
  if @options
    @options << [keyword]
  else
    @options = [keyword]
  end
end

When /^I issue the "([^\"]*)" action$/ do |action|
  @action = action
  @response = execute_minglr_command(@project, @action, @options)
end

Then /^the result should have "([^\"]*)" in it$/ do |string|
  assert @response.split("\n").join(" ").include?(string), "Expected #{@response.inspect} to contain '#{string}'"
end

Then /^the result should not have "([^\"]*)" in it$/ do |string|
  assert !@response.split("\n").join(" ").include?(string), "Expected #{@response.inspect} to not contain '#{string}'"
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
schubert-minglr-1.3.0 features/step_definitions/minglr_steps.rb
schubert-minglr-1.3.1 features/step_definitions/minglr_steps.rb
schubert-minglr-1.3.11 features/step_definitions/minglr_steps.rb
schubert-minglr-1.3.2 features/step_definitions/minglr_steps.rb
schubert-minglr-1.3.3 features/step_definitions/minglr_steps.rb
schubert-minglr-1.3.5 features/step_definitions/minglr_steps.rb
schubert-minglr-1.3.8 features/step_definitions/minglr_steps.rb
schubert-minglr-1.3.9 features/step_definitions/minglr_steps.rb
minglr-1.3.11 features/step_definitions/minglr_steps.rb