Sha256: f86d3a73af43813157a99e29964ebbafa707f2d84f43e4222ec566ba6b9377fe
Contents?: true
Size: 500 Bytes
Versions: 2
Compression:
Stored size: 500 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)) element = SingletonMethodContext.new(element, [:defs, [:call, nil, :a, [:arglist]], :b, nil]) element.outer_name.should match(/mod::a\.b/) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
kevinrutherford-reek-1.1.3.13 | spec/reek/singleton_method_context_spec.rb |
kevinrutherford-reek-1.1.3.14 | spec/reek/singleton_method_context_spec.rb |