Sha256: 2ccbbe9cac3917d32a28bf73f4bb73bfd02c53e559f8f43edb49689ea22d3320

Contents?: true

Size: 618 Bytes

Versions: 214

Compression:

Stored size: 618 Bytes

Contents

require 'test/unit/assertions'
World(Test::Unit::Assertions)

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

214 entries across 212 versions & 24 rubygems

Version Path
square-cucumber-0.3.12.2 examples/test_unit/features/step_definitions/test_unit_steps.rb
square-cucumber-0.3.93.1.1 examples/test_unit/features/step_definitions/test_unit_steps.rb
square-cucumber-0.3.93.1 examples/test_unit/features/step_definitions/test_unit_steps.rb
squirrel-cucumber-0.3.12.1 examples/test_unit/features/step_definitions/test_unit_steps.rb
squirrel-cucumber-0.3.12 examples/test_unit/features/step_definitions/test_unit_steps.rb
candlepin-api-0.4.0 bundle/ruby/1.9.1/gems/cucumber-1.2.1/examples/test_unit/features/step_definitions/test_unit_steps.rb
candlepin-api-0.4.0 bundle/ruby/1.8/gems/cucumber-1.2.1/examples/test_unit/features/step_definitions/test_unit_steps.rb
candlepin-api-0.4.0 bundle/ruby/gems/cucumber-1.2.1/examples/test_unit/features/step_definitions/test_unit_steps.rb
librarian-puppet-0.9.9 vendor/gems/ruby/1.9.1/gems/cucumber-1.2.1/examples/test_unit/features/step_definitions/test_unit_steps.rb
cucumber-1.2.5 examples/test_unit/features/step_definitions/test_unit_steps.rb
cucumber-1.2.3 examples/test_unit/features/step_definitions/test_unit_steps.rb
cucumber-1.2.2 examples/test_unit/features/step_definitions/test_unit_steps.rb
librarian-puppet-0.9.8 vendor/gems/ruby/1.9.1/gems/cucumber-1.2.1/examples/test_unit/features/step_definitions/test_unit_steps.rb
librarian-puppet-0.9.4 vendor/gems/ruby/1.8/gems/cucumber-1.2.1/examples/test_unit/features/step_definitions/test_unit_steps.rb
casecumber-1.0.2.1 examples/test_unit/features/step_definitions/test_unit_steps.rb
casecumber-1.2.1.cb2 examples/test_unit/features/step_definitions/test_unit_steps.rb
librarian-puppet-0.9.3 vendor/gems/ruby/1.8/gems/cucumber-1.2.1/examples/test_unit/features/step_definitions/test_unit_steps.rb
cucumber-1.2.1 examples/test_unit/features/step_definitions/test_unit_steps.rb
resque-pool-0.3.0 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/examples/test_unit/features/step_definitions/test_unit_steps.rb
ftl-0.2.0 vendor/bundle/gems/cucumber-1.2.0/examples/test_unit/features/step_definitions/test_unit_steps.rb