spec/platform/ronin_spec.rb in ronin-0.2.1 vs spec/platform/ronin_spec.rb in ronin-0.2.2

- old
+ new

@@ -6,10 +6,22 @@ describe Ronin do before(:all) do Platform.load_overlays(overlay_cache_path) end - it "should provide transparent access to extensions" do + it "should provide transparent access to extensions via methods" do + ext = Ronin::Hello + + ext.should_not be_nil + ext.name.should == 'hello' + ext.greatings.should == 'hello' + end + + it "should raise NameError when accessing missing extensions" do + lambda { Ronin::Nothing }.should raise_error(NameError) + end + + it "should provide transparent access to extensions via methods" do ext = Ronin.hello ext.should_not be_nil ext.name.should == 'hello' ext.greatings.should == 'hello'