Sha256: 4a12bceb050385983f4a5be0aa31e61fada16e34ff18f5a105fbdc8b0bb7ead9

Contents?: true

Size: 737 Bytes

Versions: 9

Compression:

Stored size: 737 Bytes

Contents

require File.dirname(__FILE__) + "/../../../spec_helper"

describe Spec::Runner::Options do
  it_should_behave_like "sandboxed rspec_options"

  it "should be able to run a single passing example" do
    example_group = describe("test") do
      it("passes") {1.should == 1}
      it("fails") {1.should == 2} 
    end
    options.run_one_example(example_group.examples.first.identifier)
    options.reporter.passed?.should == true
  end 

  it "should be able to run a single failing example" do
    example_group = describe("test") do
      it("passes") {1.should == 1}
      it("fails") {1.should == 2}
    end
    options.run_one_example(example_group.examples.last.identifier)
    options.reporter.passed?.should == false
  end 
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
jperkins-deep_test-1.2.2 spec/deep_test/spec/extensions/options_spec.rb
jstorimer-deep-test-2.0.0 spec/deep_test/spec/extensions/options_spec.rb
jstorimer-deep-test-1.4.0 spec/deep_test/spec/extensions/options_spec.rb
jstorimer-deep-test-1.3.0 spec/deep_test/spec/extensions/options_spec.rb
jstorimer-deep-test-1.2.0 spec/deep_test/spec/extensions/options_spec.rb
jstorimer-deep-test-1.1.0 spec/deep_test/spec/extensions/options_spec.rb
jstorimer-deep-test-1.0.0 spec/deep_test/spec/extensions/options_spec.rb
jstorimer-deep-test-0.2.0 spec/deep_test/spec/extensions/options_spec.rb
jstorimer-deep-test-0.1.0 spec/deep_test/spec/extensions/options_spec.rb