Removed tb_spec_helpers, as we aren't supporting it.
git-svn-id: https://svn.thoughtbot.com/plugins/tb_test_helpers/trunk@43 7bbfaf0e-4d1d-0410-9690-a8bb5f8ef2aa
This commit is contained in:
parent
0a6da8b218
commit
6337846ab4
|
@ -14,6 +14,20 @@ class ContextTest < Test::Unit::TestCase # :nodoc:
|
|||
should "have name set right" do
|
||||
assert_match(/^test context with setup block/, self.to_s)
|
||||
end
|
||||
|
||||
context "and with a subcontext" do
|
||||
setup do
|
||||
@blah = "#{@blah} twice"
|
||||
end
|
||||
|
||||
should "be named correctly" do
|
||||
assert_match(/^test context with subcontext should be named correctly/, self.to_s)
|
||||
end
|
||||
|
||||
should "run the setup methods in order" do
|
||||
assert_equal @blah, "blah twice"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
context "another context with setup block" do
|
||||
|
@ -44,16 +58,10 @@ class ContextTest < Test::Unit::TestCase # :nodoc:
|
|||
end
|
||||
end
|
||||
|
||||
context "final context" do
|
||||
context "another context" do
|
||||
should "not define @blah" do
|
||||
assert_nil @blah
|
||||
end
|
||||
|
||||
context "with subcontext" do
|
||||
should "be named correctly" do
|
||||
assert_match(/^test final context with subcontext should be named correctly/, self.to_s)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
should_eventually "pass anyway, since it's unimplemented" do
|
||||
|
|
Loading…
Reference in New Issue