Sha256: 362469dd8b66de884ab3339d9636d3f13c2bdaee1d3803e3b552400c21068850
Contents?: true
Size: 830 Bytes
Versions: 2
Compression:
Stored size: 830 Bytes
Contents
require 'test/test_helper' require 'lib/phocus/shoulda' # testing shoulda/test_unit class Test::Unit::TestCase def setup reset_phocused_classes(TestShouldaA, TestShouldaB, TestShouldaC) reset_phocus end end # should focus a method class TestShouldaA < Test::Unit::TestCase should "foo" do flunk "not focused" end focus should "bar" do assert true end should "baz" do flunk "not focused" end end # should focus methods across test classes class TestShouldaB < Test::Unit::TestCase should "abc" do flunk "not focused" end focus should "def" do assert true end focus should "ghi" do assert true end end # should not complain when no methods are left after focusing class TestShouldaC < Test::Unit::TestCase should "xyz" do flunk "not focused" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mynyml-phocus-0.9.4 | test/compat/test_shoulda.rb |
mynyml-phocus-0.9.8 | test/compat/test_shoulda.rb |