Update mcollective.init according to OSCI-855
[packages/precise/mcollective.git] / spec / unit / rpc_spec.rb
1 #!/usr/bin/env rspec
2
3 require 'spec_helper'
4
5 module MCollective
6   describe RPC do
7     describe "#const_missing" do
8       it "should deprecate only the DDL class" do
9         Log.expects(:warn).with("MCollective::RPC::DDL is deprecatd, please use MCollective::DDL instead")
10         MCollective::RPC::DDL.should == MCollective::DDL
11
12         expect { MCollective::RPC::Foo }.to raise_error(NameError)
13       end
14     end
15   end
16 end