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.12.5 spec/unit/mcollective/rpc_spec.rb
mcollective-client-2.12.4 spec/unit/mcollective/rpc_spec.rb
mcollective-client-2.12.3 spec/unit/mcollective/rpc_spec.rb
mcollective-client-2.12.1 spec/unit/mcollective/rpc_spec.rb
mcollective-client-2.12.0 spec/unit/mcollective/rpc_spec.rb
mcollective-client-2.10.6 spec/unit/mcollective/rpc_spec.rb
mcollective-client-2.11.4 spec/unit/mcollective/rpc_spec.rb
mcollective-client-2.11.3 spec/unit/mcollective/rpc_spec.rb
mcollective-client-2.11.2 spec/unit/mcollective/rpc_spec.rb
mcollective-client-2.11.1 spec/unit/mcollective/rpc_spec.rb
mcollective-client-2.11.0 spec/unit/mcollective/rpc_spec.rb
mcollective-client-2.10.4 spec/unit/mcollective/rpc_spec.rb
mcollective-client-2.10.3 spec/unit/mcollective/rpc_spec.rb
mcollective-client-2.10.2 spec/unit/mcollective/rpc_spec.rb
mcollective-client-2.10.1 spec/unit/mcollective/rpc_spec.rb
mcollective-client-2.10.0 spec/unit/mcollective/rpc_spec.rb
mcollective-client-2.8.7 spec/unit/mcollective/rpc_spec.rb
mcollective-client-2.8.5 spec/unit/mcollective/rpc_spec.rb
mcollective-client-2.8.8 spec/unit/mcollective/rpc_spec.rb
mcollective-client-2.8.6 spec/unit/mcollective/rpc_spec.rb