Sha256: 8463babc1373e25d538aeaf076048b6092bf3252b68baddcf3b4258e1385362b

Contents?: true

Size: 644 Bytes

Versions: 78

Compression:

Stored size: 644 Bytes

Contents

require 'test/unit/assertions'
World do |o|
  o.extend(Test::Unit::Assertions)
  o
end

Given /^(\w+) = (\w+)$/ do |var, value|
  instance_variable_set("@#{var}", value)
end

begin
  require 'rubygems'
  require 'matchy'
  Then /^I can assert that (\w+) == (\w+)$/ do |var_a, var_b|
    a = instance_variable_get("@#{var_a}")
    b = instance_variable_get("@#{var_b}")
    a.should == b
  end
rescue LoadError
  STDERR.puts "***** You should install matchy *****"
  Then /^I can assert that (\w+) == (\w+)$/ do |var_a, var_b|
    a = instance_variable_get("@#{var_a}")
    b = instance_variable_get("@#{var_b}")
    assert_equal(a, b)
  end
end

Version data entries

78 entries across 78 versions & 7 rubygems

Version Path
aslakhellesoy-cucumber-0.1.10 examples/test_unit/features/step_definitions/test_unit_steps.rb
aslakhellesoy-cucumber-0.1.100.1 examples/test_unit/features/step_definitions/test_unit_steps.rb
aslakhellesoy-cucumber-0.1.100.2 examples/test_unit/features/step_definitions/test_unit_steps.rb
aslakhellesoy-cucumber-0.1.100.3 examples/test_unit/features/step_definitions/test_unit_steps.rb
aslakhellesoy-cucumber-0.1.100.4 examples/test_unit/features/step_definitions/test_unit_steps.rb
aslakhellesoy-cucumber-0.1.100.5 examples/test_unit/features/step_definitions/test_unit_steps.rb
aslakhellesoy-cucumber-0.1.11 examples/test_unit/features/step_definitions/test_unit_steps.rb
aslakhellesoy-cucumber-0.1.12 examples/test_unit/features/step_definitions/test_unit_steps.rb
aslakhellesoy-cucumber-0.1.13.2 examples/test_unit/features/step_definitions/test_unit_steps.rb
aslakhellesoy-cucumber-0.1.13.3 examples/test_unit/features/step_definitions/test_unit_steps.rb
aslakhellesoy-cucumber-0.1.13 examples/test_unit/features/step_definitions/test_unit_steps.rb
aslakhellesoy-cucumber-0.1.14.1 examples/test_unit/features/step_definitions/test_unit_steps.rb
aslakhellesoy-cucumber-0.1.14.2 examples/test_unit/features/step_definitions/test_unit_steps.rb
aslakhellesoy-cucumber-0.1.15 examples/test_unit/features/step_definitions/test_unit_steps.rb
aslakhellesoy-cucumber-0.1.16.1 examples/test_unit/features/step_definitions/test_unit_steps.rb
aslakhellesoy-cucumber-0.1.16.2 examples/test_unit/features/step_definitions/test_unit_steps.rb
aslakhellesoy-cucumber-0.1.16.3 examples/test_unit/features/step_definitions/test_unit_steps.rb
aslakhellesoy-cucumber-0.1.16.4 examples/test_unit/features/step_definitions/test_unit_steps.rb
aslakhellesoy-cucumber-0.1.16.5 examples/test_unit/features/step_definitions/test_unit_steps.rb
aslakhellesoy-cucumber-0.1.16 examples/test_unit/features/step_definitions/test_unit_steps.rb