spec/sugar-high/regexp_spec.rb in sugar-high-0.6.3 vs spec/sugar-high/regexp_spec.rb in sugar-high-0.7.0
- old
+ new
@@ -17,11 +17,11 @@
end
describe 'Array#grep_it' do
it "should grep using a regexp" do
['hello', 'hello you', 'not you'].grep_it(/hello/).size.should == 2
- ['hello', 'hello you', 'not you'].grep_it('hello').size.should == 2
- ['hello', 'hello you', 'not you'].grep_it(nil).size.should == 3
+ ['hello', 'hello you', 'not you'].grep_it('hello').size.should == 2
+ ['hello', 'hello you', 'not you'].grep_it(nil).size.should == 3
end
end
end
end