features/step_definitions/rspec_steps.rb in bogus-0.0.2 vs features/step_definitions/rspec_steps.rb in bogus-0.0.3.rc.1
- old
+ new
@@ -4,17 +4,12 @@
steps %Q{
Given a file named "#{file_name}" with:
"""ruby
require 'bogus/rspec'
-
require_relative 'foo'
- RSpec.configure do |config|
- config.mock_with :rr
- end
-
#{string}
"""
}
end
@@ -60,7 +55,21 @@
When I run spec with the following content:
"""ruby
#{string}
"""
Then the specs should fail
+ }
+end
+
+Then /^the following test should pass:$/ do |string|
+ steps %Q{
+ When I run spec with the following content:
+ """ruby
+ describe Bogus do
+ specify do
+ #{string}
+ end
+ end
+ """
+ Then all the specs should pass
}
end