test/pelusa/lint/instance_variables_test.rb in pelusa-0.2.3 vs test/pelusa/lint/instance_variables_test.rb in pelusa-0.2.4

- old
+ new

@@ -8,32 +8,32 @@ end describe '#check' do describe 'when the class uses less than 3 ivars' do it 'returns a SuccessAnalysis' do - klass = """ + klass = Pelusa.to_ast """ class Foo def initialize @foo = 1 @bar = 2 end - end""".to_ast + end""" analysis = @lint.check(klass) analysis.successful?.must_equal true end end describe 'when the class has more than 50 lines' do it 'returns a FailureAnalysis' do - klass = """ + klass = Pelusa.to_ast """ class Foo def initialize @foo = 1 @bar = 2 @baz = 3 end - end""".to_ast + end""" analysis = @lint.check(klass) analysis.failed?.must_equal true end end