Sha256: 8d596feff1c960f568cf37479ede7a47efc0fbf338ba7044dcac12535c78442b

Contents?: true

Size: 729 Bytes

Versions: 65

Compression:

Stored size: 729 Bytes

Contents

# This demonstrates how you can write custom formatters to handle arbitrary
# options passed to the +describe+ and +it+ methods. To see it in action, stand
# in the project root and say:
# 
#   bin/spec -r examples/passing/filtered_formatter.rb examples/passing/filtered_formatter_example.rb -f FilteredFormatter
#   
# You should only see the examples and groups below that are not explicitly
# marked :show => false
#
#   group 1
#     example 1 a
#   group 3
#     example 3


describe "group 1", :show => true do
  it "example 1 a", :show => true do
  end
  it "example 1 b", :show => false do
  end
end

describe "group 2", :show => false do
  it "example 2" do
  end
end

describe "group 3" do
  it "example 3" do
  end
end

Version data entries

65 entries across 65 versions & 12 rubygems

Version Path
dchelimsky-rspec-1.1.99.1 examples/passing/filtered_formatter_example.rb
dchelimsky-rspec-1.1.99.13 examples/passing/filtered_formatter_example.rb
dchelimsky-rspec-1.1.99.2 examples/passing/filtered_formatter_example.rb
dchelimsky-rspec-1.1.99.3 examples/passing/filtered_formatter_example.rb
dchelimsky-rspec-1.1.99.4 examples/passing/filtered_formatter_example.rb
dchelimsky-rspec-1.1.99.5 examples/passing/filtered_formatter_example.rb
dchelimsky-rspec-1.1.99.6 examples/passing/filtered_formatter_example.rb
dchelimsky-rspec-1.1.99.7 examples/passing/filtered_formatter_example.rb
dchelimsky-rspec-1.1.99.8 examples/passing/filtered_formatter_example.rb
dchelimsky-rspec-1.1.99.9 examples/passing/filtered_formatter_example.rb
rspec-instructure-1.3.3 examples/passing/filtered_formatter_example.rb
radiant-1.0.0 ruby-debug/ruby/1.8/gems/rspec-1.3.2/examples/passing/filtered_formatter_example.rb
rspec-1.3.2 examples/passing/filtered_formatter_example.rb
rspec-1.3.1 examples/passing/filtered_formatter_example.rb
rspec-1.3.1.rc examples/passing/filtered_formatter_example.rb
rspec-core-2.0.0.beta.9 example_specs/passing/filtered_formatter_example.rb
rspec-core-2.0.0.beta.8 example_specs/passing/filtered_formatter_example.rb
rspec-core-2.0.0.beta.7 example_specs/passing/filtered_formatter_example.rb
rspec-core-2.0.0.beta.6 example_specs/passing/filtered_formatter_example.rb
rspec-core-2.0.0.beta.5 example_specs/passing/filtered_formatter_example.rb