Sha256: e741327eec2320b4b1aa3b4bf4e2d39ce74621cb7d4dc6b8f40ce167587d8577

Contents?: true

Size: 574 Bytes

Versions: 1

Compression:

Stored size: 574 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, s(:null, :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.3 spec/reek/smells/attribute_spec.rb