Sha256: 602c9e635ef59a716bd76280599235ba0f1e19271314b541f2b9729cbb0b3bda

Contents?: true

Size: 425 Bytes

Versions: 43

Compression:

Stored size: 425 Bytes

Contents

#!/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

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
mcollective-client-2.2.2 spec/unit/rpc_spec.rb
mcollective-client-2.2.1 spec/unit/rpc_spec.rb
mcollective-client-2.2.0 spec/unit/rpc_spec.rb