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

Version Path
reek-3.3.0 spec/reek/tree_dresser_spec.rb
reek-3.2.1 spec/reek/tree_dresser_spec.rb
reek-3.2 spec/reek/tree_dresser_spec.rb
reek-3.1 spec/reek/tree_dresser_spec.rb
reek-3.0.4 spec/reek/tree_dresser_spec.rb
reek-3.0.3 spec/reek/tree_dresser_spec.rb
reek-3.0.2 spec/reek/tree_dresser_spec.rb
reek-3.0.1 spec/reek/tree_dresser_spec.rb
reek-3.0.0 spec/reek/tree_dresser_spec.rb