spec/Context/Bridge_spec.rb in context-0.0.16 vs spec/Context/Bridge_spec.rb in context-0.0.22
- old
+ new
@@ -1,37 +1,36 @@
+require 'Context/Spec'
require 'Context/Bridge'
-module Other
- module Special
- class Fun
- end
+module Context::Spec::BridgeStory
- class In
+ module Other
+ module Special
+ class Fun
+ end
+
+ class In
+ end
end
end
-end
-module Context::Special
- class Fun
+ module Special
+ class Fun
+ end
end
-end
-module Context
class Fun
end
-end
+
+ module Excluded
+ class Sun
+ end
+ end
-module Excluded
- class Sun
- end
-end
+ describe Context::Bridge do
-module Context
-
- describe Bridge do
-
it "should reference classes in the namespace provided" do
- bridge = Bridge.new([Special, Other::Special])
+ bridge = Context::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