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