Sha256: 32f027e04241570eec31087ea91c4cb6d1eea9d65ba06f97db2e96b7c603e80f

Contents?: true

Size: 565 Bytes

Versions: 1

Compression:

Stored size: 565 Bytes

Contents

require File.dirname(__FILE__) + '/../../spec_helper.rb'

require 'reek/smells/attribute'
require 'reek/class_context'

require 'spec/reek/smells/behaves_like_variable_detector'

include Reek
include Reek::Smells

describe Attribute do
  before :each do
    @detector = Attribute.new
    @record_variable = :record_attribute
  end

  [ClassContext, ModuleContext].each do |klass|
    context "in a #{klass}" do
      before :each do
        @ctx = klass.create(StopContext.new, "Fred")
      end

      it_should_behave_like 'a variable detector'
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
reek-1.2.2 spec/reek/smells/attribute_spec.rb