equal
deleted
inserted
replaced
65 EO_FILE_TEXT |
65 EO_FILE_TEXT |
66 |
66 |
67 |
67 |
68 describe Chunker::DataParser do |
68 describe Chunker::DataParser do |
69 |
69 |
70 it "doesn't include content above the __END__ marker" do |
70 it "doesn't include content above the __END__ token" do |
71 klass = Class.new |
71 klass = Class.new |
72 dp = Chunker::DataParser.new( klass, StringIO.new( FILE_TEXT_MULTIPLE )) |
72 dp = Chunker::DataParser.new( klass, StringIO.new( FILE_TEXT_MULTIPLE )) |
73 dp.instance_variable_get( :@scanner ).string. |
73 dp.instance_variable_get( :@scanner ).string. |
74 should_not =~ /This is stuff we shouldn't see/ |
74 should_not =~ /This is stuff we shouldn't see/ |
75 end |
75 end |
76 |
76 |
77 it "doesn't contain the __END__ marker itself" do |
77 it "doesn't contain the __END__ token itself" do |
78 klass = Class.new |
78 klass = Class.new |
79 dp = Chunker::DataParser.new( klass, StringIO.new( FILE_TEXT )) |
79 dp = Chunker::DataParser.new( klass, StringIO.new( FILE_TEXT )) |
80 dp.instance_variable_get( :@scanner ).string.should_not =~ /^__END__/ |
80 dp.instance_variable_get( :@scanner ).string.should_not =~ /^__END__/ |
81 end |
81 end |
82 end |
82 end |