Sha256: 8b0d014c0369af7070eb01c9e32c275665cd625726e45f9c2b044f61829513a2
Contents?: true
Size: 804 Bytes
Versions: 2
Compression:
Stored size: 804 Bytes
Contents
Feature: --dry-run Use the `--dry-run` option to have RSpec print your suite's formatter output without running any examples or hooks. Scenario: Using --dry-run Given a file named "spec/dry_run_spec.rb" with: """ruby RSpec.configure do |c| c.before(:suite) { puts "before suite" } c.after(:suite) { puts "after suite" } end describe "dry run" do before(:all) { fail } before(:each) { fail } it "fails in example" do fail end after(:each) { fail } after(:all) { fail } end """ When I run `rspec --dry-run` Then the output should contain "1 example, 0 failures" And the output should not contain "before suite" And the output should not contain "after suite"
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rspec-core-3.0.0.beta2 | features/command_line/dry_run.feature |
rspec-core-3.0.0.beta1 | features/command_line/dry_run.feature |