mirror of
https://gitea.invidious.io/iv-org/shard-ameba.git
synced 2024-08-15 00:53:29 +00:00
Remove one-line methods
Unnecessary level of abstraction
This commit is contained in:
parent
3a71b86193
commit
a059ade305
4 changed files with 2 additions and 22 deletions
|
@ -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 = %(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue