Remove one-line methods

Unnecessary level of abstraction
This commit is contained in:
Vitalii Elenhaupt 2019-03-23 19:25:03 +02:00
parent 3a71b86193
commit a059ade305
No known key found for this signature in database
GPG key ID: 7558EF3A4056C706
4 changed files with 2 additions and 22 deletions

View file

@ -36,16 +36,6 @@ module Ameba::AST
end
end
describe "#string_literal?" do
it "returns true if node is a string literal" do
subject.string_literal?(Crystal::StringLiteral.new "").should be_true
end
it "returns false if node is not a string literal" do
subject.string_literal?(Crystal::Nop.new).should be_false
end
end
describe "#node_source" do
it "returns original source of the node" do
s = %(