Sha256: 5d5e003802c7acd51485c721c6f2902be6d2345ee249d6e33f1d7eb18ce252e6

Contents?: true

Size: 549 Bytes

Versions: 1

Compression:

Stored size: 549 Bytes

Contents

require_relative '../../spec_helper'
require_relative '../../../lib/reek/source/tree_dresser'

describe Reek::Source::TreeDresser do
  let(:ifnode) { Parser::AST::Node.new(:if) }
  let(:sendnode) { Parser::AST::Node.new(:send) }
  let(:dresser) { Reek::Source::TreeDresser.new }

  it 'dresses :if sexp with IfNode' do
    expect(dresser.dress(ifnode, {})).to be_a Reek::Source::SexpExtensions::IfNode
  end

  it 'dresses :send sexp with SendNode' do
    expect(dresser.dress(sendnode, {})).to be_a Reek::Source::SexpExtensions::SendNode
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
reek-2.1.0 spec/reek/source/tree_dresser_spec.rb