Source#content -> Source#code, Source::Error#pos -> Source::Error#location

This commit is contained in:
Vitalii Elenhaupt 2017-11-07 22:02:51 +02:00
parent 9036a7ca71
commit e718c90f16
No known key found for this signature in database
GPG key ID: 7558EF3A4056C706
39 changed files with 91 additions and 90 deletions

View file

@ -20,7 +20,7 @@ module Ameba::Formatter
it "writes invalid source" do
s = Source.new ""
s.error DummyRule.new, 3, "message"
s.error DummyRule.new, nil, "message"
subject.source_finished s
output.to_s.should contain "F"
end