X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=spec%2Funit%2Frpc_spec.rb;fp=spec%2Funit%2Frpc_spec.rb;h=2ec96d23ab80ae18eb3e9432610c56a58aebcc69;hb=b87d2f4e68281062df1913440ca5753ae63314a9;hp=0000000000000000000000000000000000000000;hpb=ab0ea530b8ac956091f17b104ab2311336cfc250;p=packages%2Fprecise%2Fmcollective.git diff --git a/spec/unit/rpc_spec.rb b/spec/unit/rpc_spec.rb new file mode 100755 index 0000000..2ec96d2 --- /dev/null +++ b/spec/unit/rpc_spec.rb @@ -0,0 +1,16 @@ +#!/usr/bin/env rspec + +require 'spec_helper' + +module MCollective + describe RPC do + describe "#const_missing" do + it "should deprecate only the DDL class" do + Log.expects(:warn).with("MCollective::RPC::DDL is deprecatd, please use MCollective::DDL instead") + MCollective::RPC::DDL.should == MCollective::DDL + + expect { MCollective::RPC::Foo }.to raise_error(NameError) + end + end + end +end