Sha256: 59b91f447674ff76d1eccb9ecbe84ec8aa8f51c9e0558c7c000baa4af39488d1
Contents?: true
Size: 553 Bytes
Versions: 1
Compression:
Stored size: 553 Bytes
Contents
require 'helper' describe TestRocket do it "should find emptiness non-truthful by default" do (+->{}).must_match(/FAIL/) end it "should pass a simple positive assertion" do (+->{ 2 + 2 == 4 }).must_match(/OK/) end it "should pass a simple negative assertion" do (-->{ 2 + 2 == 5 }).must_match(/OK/) end it "should fail a simple erroneous assertion" do (+->{ 2 + 2 == 5 }).must_match(/FAIL/) end it "should fail a simple correct assertion assumed to fail" do (-->{ 2 + 2 == 4 }).must_match(/FAIL/) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
testrocket-0.0.1 | test/test_testrocket.rb |