gallio.RSpec.libs.rspec-1.2.7.examples.passing.options_example.rb Maven / Gradle / Ivy
# 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
require File.dirname(__FILE__) + '/spec_helper'
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
© 2015 - 2025 Weber Informatics LLC | Privacy Policy