features/step_definitions/rspec_steps.rb in bogus-0.1.0 vs features/step_definitions/rspec_steps.rb in bogus-0.1.1

- old
+ new

@@ -4,11 +4,10 @@ steps %Q{ Given a file named "#{file_name}" with: """ruby require 'bogus/rspec' - require_relative 'foo' #{string} """ } end @@ -24,10 +23,10 @@ Then the exit status should be 0 } end When /^I run spec with the following content:$/ do |string| - file_name = 'foo_spec.rb' + file_name = "foo_#{rand(1000000)}_spec.rb" steps %Q{ Given a spec file named "#{file_name}" with: """ruby #{string}