Sha256: 3784a346412e2e02c9c0f27f5b23a242fe8e75f4ec24fe09bd50625a9108d039
Contents?: true
Size: 629 Bytes
Versions: 6
Compression:
Stored size: 629 Bytes
Contents
When /^I run rspec( with the documentation option)?$/ do |documentation| rspec_change_to_now_gem_location = File.expand_path('../../../lib/rspec/change_to_now', __FILE__) require_option = "--require #{rspec_change_to_now_gem_location}" format_option = documentation ? "--format documentation" : "" rspec_command = ['rspec', require_option, format_option, 'example_spec.rb'].join(' ') step "I run `#{rspec_command}`" end Then /^the example(?:s)? should(?: all)? pass$/ do step %q{the output should contain "0 failures"} step %q{the output should not contain "0 examples"} step %q{the exit status should be 0} end
Version data entries
6 entries across 6 versions & 1 rubygems