features/step_definitions/rspec_steps.rb in bogus-0.1.2 vs features/step_definitions/rspec_steps.rb in bogus-0.1.3

- old
+ new

@@ -16,11 +16,11 @@ steps %Q{ Then the exit status should be 1 } end -Then /^all the specs should pass$/ do +Then /^the specs should pass$/ do steps %Q{ Then the exit status should be 0 } end @@ -43,11 +43,11 @@ steps %Q{ When I run spec with the following content: """ruby #{string} """ - Then all the specs should pass + Then the specs should pass } end Then /^spec file with following content should fail:$/ do |string| steps %Q{ @@ -67,8 +67,19 @@ specify do #{string} end end """ - Then all the specs should pass + Then the specs should pass + } +end + +Then /^minitest file "([^"]*)" with the following content should (pass|fail):$/ do |file_name, pass_fail, string| + steps %Q{ + Given a file named "#{file_name}" with: + """ruby + #{string} + """ + When I run `ruby #{file_name}` + Then the specs should #{pass_fail} } end