Lines Matching refs:should
22 tokens.render.should == expected
233 should raise_error { |error|
234 …error.to_s.should == %q<operation (replace @ 1..2 : "foo") overlaps with previous operation (repla…
244 should raise_error { |error|
245 …error.to_s.should == %q<operation (insert-before @ 4 : "y") overlaps with previous operation (repl…
255 should raise_error { |error|
256 …error.to_s.should == %q<operation (replace @ 3..5 : "foo") overlaps with previous operation (repla…
266 should raise_error { |error|
267 …error.to_s.should == %q<operation (replace @ 1..3 : "foo") overlaps with previous operation (repla…
297 stream.original_string.should == 'x = 3 * 0;'
298 stream.render.should == 'x = 0;'
299 stream.render( 0, 9 ).should == 'x = 0;'
300 stream.render( 4, 8 ).should == '0'
305 stream.original_string.should == 'x = 3 * 0 + 2 * 0;'
307 stream.render.should == 'x = 0 + 2 * 0;'
308 stream.render( 0, 17 ).should == 'x = 0 + 2 * 0;'
309 stream.render( 4, 8 ).should == '0'
310 stream.render( 0, 8 ).should == 'x = 0'
311 stream.render( 12, 16 ).should == '2 * 0'
313 stream.render( 12, 17 ).should == '2 * 0;// comment'
314 stream.render( 0, 8 ).should == 'x = 0'