Sha256: 4ef82e3addca9aa3274291acf9a1885c560746c5466ebb060e503d5f366633c6

Contents?: true

Size: 464 Bytes

Versions: 4

Compression:

Stored size: 464 Bytes

Contents

require 'spec_helper'
require 'reek/source/tree_dresser'

include Reek::Source

describe TreeDresser do
  let(:ifnode) { Sexp.new(:if) }
  let(:callnode) { Sexp.new(:call) }
  let(:dresser) { TreeDresser.new }

  it 'dresses :if sexp with IfNode' do
    dresser.dress(ifnode).should be_a Reek::Source::SexpExtensions::IfNode
  end

  it 'dresses :call sexp with CallNode' do
    dresser.dress(callnode).should be_a Reek::Source::SexpExtensions::CallNode
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
reek-1.3.8 spec/reek/source/tree_dresser_spec.rb
reek-1.3.7 spec/reek/source/tree_dresser_spec.rb
reek-1.3.6 spec/reek/source/tree_dresser_spec.rb
reek-1.3.5 spec/reek/source/tree_dresser_spec.rb