Sha256: 23185036dbc76c6c0f98de1bafc6a068d06f438f0afcb21926789c1f6d890505

Contents?: true

Size: 1.04 KB

Versions: 23

Compression:

Stored size: 1.04 KB

Contents

def flunker
  raise "FAIL"
end

Given /^passing$/ do |table|
end

Given /^failing$/ do |string|
  flunker
end

Given /^passing without a table$/ do
end

Given /^failing without a table$/ do
  flunker
end

Given /^a step definition that calls an undefined step$/ do
  Given 'this does not exist'
end

Given /^call step "(.*)"$/ do |step|
  Given step
end

Given /^'(.+)' cukes$/ do |cukes|
  @cukes = cukes
end

Then /^I should have '(.+)' cukes$/ do |cukes|
  @cukes.should == cukes
end

Given /^'(.+)' global cukes$/ do |cukes|
  $scenario_runs ||= 0
  flunker if $scenario_runs >= 1
  $cukes = cukes
  $scenario_runs += 1
end

Then /^I should have '(.+)' global cukes$/ do |cukes|
  $cukes.should == cukes
end

Given /^table$/ do |table|
  @table = table
end

Given /^multiline string$/ do |string|
  @multiline = string
end

Then /^the table should be$/ do |table|
  @table.to_sexp.should == table.to_sexp
end

Then /^the multiline string should be$/ do |string|
  @multiline.should == string
end

Given /^failing expectation$/ do
  'this'.should == 'that'
end

Version data entries

23 entries across 23 versions & 3 rubygems

Version Path
aslakhellesoy-cucumber-0.1.100.1 examples/self_test/features/step_definitions/sample_steps.rb
aslakhellesoy-cucumber-0.1.100.2 examples/self_test/features/step_definitions/sample_steps.rb
aslakhellesoy-cucumber-0.1.100.3 examples/self_test/features/step_definitions/sample_steps.rb
aslakhellesoy-cucumber-0.1.100.4 examples/self_test/features/step_definitions/sample_steps.rb
aslakhellesoy-cucumber-0.1.100.5 examples/self_test/features/step_definitions/sample_steps.rb
aslakhellesoy-cucumber-0.2.0.1 examples/self_test/features/step_definitions/sample_steps.rb
aslakhellesoy-cucumber-0.2.0.2 examples/self_test/features/step_definitions/sample_steps.rb
aslakhellesoy-cucumber-0.2.0.3 examples/self_test/features/step_definitions/sample_steps.rb
aslakhellesoy-cucumber-0.2.0.4 examples/self_test/features/step_definitions/sample_steps.rb
aslakhellesoy-cucumber-0.2.0 examples/self_test/features/step_definitions/sample_steps.rb
aslakhellesoy-cucumber-0.2.1 examples/self_test/features/step_definitions/sample_steps.rb
aslakhellesoy-cucumber-0.2.2.1 examples/self_test/features/step_definitions/sample_steps.rb
aslakhellesoy-cucumber-0.2.2.2 examples/self_test/features/step_definitions/sample_steps.rb
aslakhellesoy-cucumber-0.2.2 examples/self_test/features/step_definitions/sample_steps.rb
aslakhellesoy-cucumber-0.2.3 examples/self_test/features/step_definitions/sample_steps.rb
kosmas58-cucumber-0.1.100.5 examples/self_test/features/step_definitions/sample_steps.rb
kosmas58-cucumber-0.2.0.1 examples/self_test/features/step_definitions/sample_steps.rb
kosmas58-cucumber-0.2.0 examples/self_test/features/step_definitions/sample_steps.rb
kosmas58-cucumber-0.2.2.1 examples/self_test/features/step_definitions/sample_steps.rb
cucumber-0.2.0 examples/self_test/features/step_definitions/sample_steps.rb