Permalink
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (24 sloc) 786 Bytes
# This demonstrates the use of the options hash to support custom reporting.
# To see the result, run this command from the project root:
#
# bin/spec --require examples/passing/options_formatter.rb examples/passing/options_example.rb \
# --format OptionsFormatter
describe "this group will be reported", :report => true do
it "this example will be reported", :report => true do
# no-op
end
it "this example will not be reported", :report => false do
# no-op
end
it "this example will also not be reported", :foo => 'bar' do
# no-op
end
it "this example will also also not be reported" do
# no-op
end
end
describe "this group will not be reported", :report => false do
it "though this example will", :report => true do
# no-op
end
end