Sha256: ef1a452f2f925644ac6c4a023f9965a6548d15b24947f34088d43d9d80461c28

Contents?: true

Size: 651 Bytes

Versions: 20

Compression:

Stored size: 651 Bytes

Contents

require 'spec_helper'

describe Ridley::NodeObject do
  let(:resource) { double('resource') }
  let(:instance) { described_class.new(resource) }
  subject { instance }

  describe "#chef_run" do
    it "sends the message #chef_run to the resource with the public_hostname of this instance" do
      resource.should_receive(:chef_run).with(instance.public_hostname)
      subject.chef_run
    end
  end

  describe "#put_secret" do
    it "sends the message #put_secret to the resource with the public_hostname of this instance" do
      resource.should_receive(:put_secret).with(instance.public_hostname)

      subject.put_secret
    end
  end  
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
ridley-connectors-2.4.0 spec/unit/ridley-connectors/chef_objects/node_object_spec.rb
ridley-connectors-2.3.1 spec/unit/ridley-connectors/chef_objects/node_object_spec.rb
ridley-connectors-2.3.0 spec/unit/ridley-connectors/chef_objects/node_object_spec.rb
ridley-connectors-2.2.0 spec/unit/ridley-connectors/chef_objects/node_object_spec.rb
ridley-connectors-2.1.2 spec/unit/ridley-connectors/chef_objects/node_object_spec.rb
ridley-connectors-2.1.1 spec/unit/ridley-connectors/chef_objects/node_object_spec.rb
ridley-connectors-2.1.0 spec/unit/ridley-connectors/chef_objects/node_object_spec.rb
ridley-connectors-2.0.1 spec/unit/ridley-connectors/chef_objects/node_object_spec.rb
ridley-connectors-2.0.0 spec/unit/ridley-connectors/chef_objects/node_object_spec.rb
ridley-connectors-2.0.0.rc1 spec/unit/ridley-connectors/chef_objects/node_object_spec.rb
ridley-connectors-1.7.1 spec/unit/ridley-connectors/chef_objects/node_object_spec.rb
ridley-connectors-1.7.0 spec/unit/ridley-connectors/chef_objects/node_object_spec.rb
ridley-connectors-1.6.0 spec/unit/ridley-connectors/chef_objects/node_object_spec.rb
ridley-connectors-1.5.0 spec/unit/ridley-connectors/chef_objects/node_object_spec.rb
ridley-connectors-1.4.0 spec/unit/ridley-connectors/chef_objects/node_object_spec.rb
ridley-connectors-1.3.0 spec/unit/ridley-connectors/chef_objects/node_object_spec.rb
ridley-connectors-1.2.1 spec/unit/ridley-connectors/chef_objects/node_object_spec.rb
ridley-connectors-1.2.0 spec/unit/ridley-connectors/chef_objects/node_object_spec.rb
ridley-connectors-1.1.0 spec/unit/ridley-connectors/chef_objects/node_object_spec.rb
ridley-connectors-1.0.1 spec/unit/ridley-connectors/chef_objects/node_object_spec.rb