You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

test_unit_steps.rb 319 B

2 years ago
12345678910111213
  1. require 'test/unit/assertions'
  2. World(Test::Unit::Assertions)
  3. Given(/^(\w+) = (\w+)$/) do |var, value|
  4. instance_variable_set("@#{var}", value)
  5. end
  6. Then(/^I can assert that (\w+) == (\w+)$/) do |var_a, var_b|
  7. a = instance_variable_get("@#{var_a}")
  8. b = instance_variable_get("@#{var_b}")
  9. assert_equal(a, b)
  10. end

No Description

Contributors (1)