spec/testrbl_spec.rb in testrbl-0.1.9 vs spec/testrbl_spec.rb in testrbl-0.1.10
- old
+ new
@@ -359,14 +359,14 @@
it "finds interpolated test do calls" do
call(" test \"c\#{111}b\" do\n").should == [" ", "^test(: |_)c.*b$"]
end
it "finds should do calls" do
- call(" should \"xx xx\" do\n").should == [" ", "should xx xx. $"]
+ call(" should \"xx xx\" do\n").should == [" ", "should xx xx. (?:(.*))?$"]
end
it "finds interpolated context do calls" do
- call(" should \"c\#{111}b\" do\n").should == [" ", "should c.*b. $"]
+ call(" should \"c\#{111}b\" do\n").should == [" ", "should c.*b. (?:(.*))?$"]
end
it "finds context do calls" do
call(" context \"xx xx\" do\n").should == [" ", "xx xx"]
end