* Rename 'markers' to 'token'
* Fix up the Rakefile's gem generation * Add LICENSE * Add a real README
This commit is contained in:
parent
f4051c5a35
commit
194fadda98
5 changed files with 183 additions and 138 deletions
|
|
@ -67,14 +67,14 @@ EO_FILE_TEXT
|
|||
|
||||
describe Chunker::DataParser do
|
||||
|
||||
it "doesn't include content above the __END__ marker" do
|
||||
it "doesn't include content above the __END__ token" do
|
||||
klass = Class.new
|
||||
dp = Chunker::DataParser.new( klass, StringIO.new( FILE_TEXT_MULTIPLE ))
|
||||
dp.instance_variable_get( :@scanner ).string.
|
||||
should_not =~ /This is stuff we shouldn't see/
|
||||
end
|
||||
|
||||
it "doesn't contain the __END__ marker itself" do
|
||||
it "doesn't contain the __END__ token itself" do
|
||||
klass = Class.new
|
||||
dp = Chunker::DataParser.new( klass, StringIO.new( FILE_TEXT ))
|
||||
dp.instance_variable_get( :@scanner ).string.should_not =~ /^__END__/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue