examples/lib/micronaut/configuration_example.rb in spicycode-micronaut-0.1.7 vs examples/lib/micronaut/configuration_example.rb in spicycode-micronaut-0.1.7.1
- old
+ new
@@ -23,13 +23,13 @@
def you_call_this_a_blt?
"egad man, where's the mayo?!?!?"
end
end
- it "should include the given module into each behaviour group" do
- Micronaut.configuration.include(InstanceLevelMethods)
- group = Micronaut::Behaviour.describe(Object, 'does like, stuff and junk') { }
+ it "should include the given module into each matching behaviour" do
+ Micronaut.configuration.include(InstanceLevelMethods, :magic_key => :include)
+ group = Micronaut::Behaviour.describe(Object, 'does like, stuff and junk', :magic_key => :include) { }
group.should_not respond_to(:you_call_this_a_blt?)
remove_last_describe_from_world
group.new.you_call_this_a_blt?.should == "egad man, where's the mayo?!?!?"
end
@@ -43,12 +43,13 @@
def that_thing
end
end
- it "should extend the given module into each behaviour group" do
- Micronaut.configuration.extend(ThatThingISentYou)
- group = Micronaut::Behaviour.describe(ThatThingISentYou) { }
+ it "should extend the given module into each matching behaviour" do
+ Micronaut.configuration.extend(ThatThingISentYou, :magic_key => :extend)
+ group = Micronaut::Behaviour.describe(ThatThingISentYou, :magic_key => :extend) { }
+
group.should respond_to(:that_thing)
remove_last_describe_from_world
end
end