Sha256: cd28d20dd93d8aa869df53a3531ec1b7cf1e02143c25fe76dc4d0b12a5b03344
Contents?: true
Size: 1.27 KB
Versions: 6
Compression:
Stored size: 1.27 KB
Contents
Feature: heckle a class As an RSpec user who wants to verify that my specs cover what I think it covers I want to heckle a class Scenario: Heckle finds problems Given the following spec: """ class Thing def a_or_b if true "a" else "b" end end end describe Thing do it "returns a for true" do Thing.new.a_or_b.should == "a" end end """ When I run it with the spec command --heckle Thing Then the stdout should match "The following mutations didn't cause test failures:" But the stdout should not match "FAILED" Scenario: Heckle does not find a problem Given the following spec: """ class Thing def a_or_b(key) if key "a" else "b" end end end describe Thing do it "returns a for true" do Thing.new.a_or_b(true).should == "a" end it "returns b for false" do Thing.new.a_or_b(false).should == "b" end end """ When I run it with the spec command --heckle Thing Then the stdout should match "No mutants survived" But the stdout should not match "FAILED"
Version data entries
6 entries across 6 versions & 2 rubygems