require 'Context/Bridge' module Other module Special class Fun end class In end end end module Context::Special class Fun end end module Context class Fun end end module Excluded class Sun end end module Context describe Bridge do it "should reference classes in the namespace provided" do bridge = Bridge.new([Special, Other::Special]) bridge.Fun.should be(Special::Fun) bridge.In.should be(Other::Special::In) bridge.Sun.should_not be(Excluded::Sun) end end end