2
In order to get started quickly
4
I want to use a familiar assertion library
7
Given a file named "features/assert.feature" with:
14
Given a file named "without_rspec.rb" with:
16
require 'rubygems' if RUBY_VERSION <= '1.8.7'
17
require 'rspec/expectations'
20
remove_const :Matchers rescue nil
21
remove_const :Expectations rescue nil
25
remove_const :Expectations rescue nil
31
Given a file named "features/step_definitions/assert_steps.rb" with:
33
require 'test/unit/assertions'
34
World(::Test::Unit::Assertions)
36
Then /^it should pass$/ do
41
Then it should pass with exactly:
45
Scenario: Passing # features/assert.feature:2
46
Then it should pass # features/step_definitions/assert_steps.rb:4
55
Given a file named "features/step_definitions/assert_steps.rb" with:
57
Then /^it should pass$/ do
62
Then it should pass with exactly:
66
Scenario: Passing # features/assert.feature:2
67
Then it should pass # features/step_definitions/assert_steps.rb:1