test/friend_spec.rb in friends-0.3 vs test/friend_spec.rb in friends-0.4
- old
+ new
@@ -69,11 +69,11 @@
describe "#regexes_for_name" do
subject { friend.regexes_for_name }
it "generates appropriate regexes" do
subject.must_equal [
- /(?<!\*\*)(?<![A-z])Jacob\s+Evelyn(?![A-z])(?!\*\*)/i,
- /(?<!\*\*)(?<![A-z])Jacob(?![A-z])(?!\*\*)/i
+ /(?<!\\)(?<!\*\*)(?<![A-z])Jacob\s+Evelyn(?![A-z])(?!\*\*)/i,
+ /(?<!\\)(?<!\*\*)(?<![A-z])Jacob(?![A-z])(?!\*\*)/i
]
end
end
describe "#<=>" do