Sha256: b17300e91789016ef462a26e0b60d5b5b2156908ed34700251093255f6c6b55d
Contents?: true
Size: 522 Bytes
Versions: 9
Compression:
Stored size: 522 Bytes
Contents
require_relative '../spec_helper' require_relative '../../lib/reek/tree_dresser' RSpec.describe Reek::TreeDresser do let(:ifnode) { ::Parser::AST::Node.new(:if) } let(:sendnode) { ::Parser::AST::Node.new(:send) } let(:dresser) { described_class.new } it 'dresses :if sexp with IfNode' do expect(dresser.dress(ifnode, {})).to be_a Reek::AST::SexpExtensions::IfNode end it 'dresses :send sexp with SendNode' do expect(dresser.dress(sendnode, {})).to be_a Reek::AST::SexpExtensions::SendNode end end
Version data entries
9 entries across 9 versions & 1 rubygems