/usr/share/doc/ruby-rspec-core/features/command_line/dry_run.feature is in ruby-rspec-core 3.7.0c1e0m0s1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | Feature: `--dry-run` option
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
RSpec.describe "dry run" do
before(:context) { fail }
before(:example) { fail }
it "fails in example" do
fail
end
after(:example) { fail }
after(:context) { 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"
|