Sha256: 323edf2511444afd57f634e54e6bdcf7f18b8bd0b08b540a2f7c31b6bb38997f
Contents?: true
Size: 530 Bytes
Versions: 3
Compression:
Stored size: 530 Bytes
Contents
require File.dirname(__FILE__) + '/../spec_helper.rb' require 'reek/module_context' require 'reek/singleton_method_context' require 'reek/stop_context' include Reek describe SingletonMethodContext, 'outer_name' do it "should report full context" do element = StopContext.new element = ModuleContext.new(element, Name.new(:mod), s(:module, :mod, nil)) element = SingletonMethodContext.new(element, s(:defs, s(:call, nil, :a, s(:arglist)), :b, s(:args))) element.outer_name.should match(/mod::a\.b/) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
reek-1.2.5 | spec/reek/singleton_method_context_spec.rb |
reek-1.2.4 | spec/reek/singleton_method_context_spec.rb |
reek-1.2.3 | spec/reek/singleton_method_context_spec.rb |