test/spec/runner/spec_matcher_test.rb in rspec-0.6.0 vs test/spec/runner/spec_matcher_test.rb in rspec-0.6.1

- old
+ new

@@ -5,9 +5,14 @@ def test_should_match_context_and_spec matcher = SpecMatcher.new("a context with a spec", "a context") assert matcher.matches?("with a spec") end + + def test_should_match_with_regexp_reserved_characters + matcher = SpecMatcher.new("a context with #[] a spec", "a context") + assert matcher.matches?("with #[] a spec") + end def test_should_not_match_wrong_context matcher = SpecMatcher.new("another context with a spec", "a context") assert !matcher.matches?("with a spec") end