Sha256: 7964bf914524471f29f36a0e1ef1e3e2513043f76c32279ead1d652d0e9066fb

Contents?: true

Size: 835 Bytes

Versions: 23

Compression:

Stored size: 835 Bytes

Contents

# 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

Version data entries

23 entries across 23 versions & 2 rubygems

Version Path
rspec-core-2.0.0.beta.9 example_specs/passing/options_example.rb
rspec-core-2.0.0.beta.8 example_specs/passing/options_example.rb
rspec-core-2.0.0.beta.7 example_specs/passing/options_example.rb
rspec-core-2.0.0.beta.6 example_specs/passing/options_example.rb
rspec-core-2.0.0.beta.5 example_specs/passing/options_example.rb
rspec-core-2.0.0.beta.4 example_specs/passing/options_example.rb
rspec-core-2.0.0.beta.3 example_specs/passing/options_example.rb
rspec-core-2.0.0.beta.2 example_specs/passing/options_example.rb
rspec-core-2.0.0.beta.1 example_specs/passing/options_example.rb
rspec-core-2.0.0.a10 example_specs/passing/options_example.rb
rspec-core-2.0.0.a9 example_specs/passing/options_example.rb
rspec-core-2.0.0.a8 example_specs/passing/options_example.rb
rspec-core-2.0.0.a7 example_specs/passing/options_example.rb
rspec-core-2.0.0.a6 example_specs/passing/options_example.rb
rspec-core-2.0.0.a5 example_specs/passing/options_example.rb
rspec-core-2.0.0.a4 example_specs/passing/options_example.rb
rspec-core-2.0.0.a3 example_specs/passing/options_example.rb
rspec-core-2.0.0.a2 example_specs/passing/options_example.rb
rspec-core-2.0.0.a1 example_specs/passing/options_example.rb
rspec-1.2.7 examples/passing/options_example.rb