Sha256: 5da052756516a6d10d2150f15d51978092eea045bf4a0f0b7f618a6a76cbb978
Contents?: true
Size: 514 Bytes
Versions: 2
Compression:
Stored size: 514 Bytes
Contents
require_relative '../../spec_helper' require_relative '../../../lib/reek/context/singleton_method_context' RSpec.describe Reek::Context::SingletonMethodContext do let(:smc) do sexp = sexp(:def, :foo, sexp(:args, sexp(:arg, :bar)), nil) Reek::Context::SingletonMethodContext.new(nil, sexp) end describe '#envious_receivers' do it 'should not record envious calls' do smc.record_call_to sexp(:send, sexp(:lvar, :bar), :baz) expect(smc.envious_receivers).to be_empty end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
reek-3.4.0 | spec/reek/context/singleton_method_context_spec.rb |
reek-3.3.1 | spec/reek/context/singleton_method_context_spec.rb |