Sha256: 36c2260dfb1179ef8808053e6e300367fc487e0fadc954adb0865a10b1dea7e0
Contents?: true
Size: 479 Bytes
Versions: 6
Compression:
Stored size: 479 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, [0, :mod]) element = SingletonMethodContext.new(element, [:defs, [:vcall, :a], :b, nil]) element.outer_name.should match(/mod::a\.b/) end end
Version data entries
6 entries across 6 versions & 2 rubygems