Sha256: e6a7f09076222e88f6cab9a862e6ec057351120a0c1133a53362028e47e4c8af
Contents?: true
Size: 816 Bytes
Versions: 8
Compression:
Stored size: 816 Bytes
Contents
require File.join(File.dirname(__FILE__), "test_helper") class ScenarioTest < Test::Unit::TestCase context "A Scenario" do setup do @scenario = Scenario.new("foobar", Feature("something_or_other")) {} end context "when instantiated" do context "with only a String" do setup do @scenario = Scenario.new("foobar", Feature("another")) end should "be pending" do assert(@scenario.pending?) end end end end should "allow Test::Unit::TestCase class to subclass to be set" do Scenario.testcase_class = Test::Unit::TestCase end should "raise an Exception if provided a class that does not inherit from Test::Unit::TestCase" do assert_raises Exception do Scenario.testcase_class = Object end end end
Version data entries
8 entries across 8 versions & 1 rubygems