test/pelusa/lint/long_identifiers_test.rb in pelusa-0.2.3 vs test/pelusa/lint/long_identifiers_test.rb in pelusa-0.2.4
- old
+ new
@@ -8,29 +8,29 @@
end
describe '#check' do
describe 'when the class contains no long identifiers' do
it 'returns a SuccessAnalysis' do
- klass = """
+ klass = Pelusa.to_ast """
class Foo
def initialize
not_long_identifier = nil
end
- end""".to_ast
+ end"""
analysis = @lint.check(klass)
analysis.successful?.must_equal true
end
end
describe 'when the class contains a long identifier' do
it 'returns a FailureAnalysis' do
- klass = """
+ klass = Pelusa.to_ast """
class Foo
def initialize
it_is_long_identifier = nil
end
- end""".to_ast
+ end"""
analysis = @lint.check(klass)
analysis.failed?.must_equal true
end
end