Sha256: 926df39413bb2dea97bcc1fd187a1be4ca306381da7808542eb05640acf9de37

Contents?: true

Size: 494 Bytes

Versions: 7

Compression:

Stored size: 494 Bytes

Contents

shared_examples "a wrapped API resource" do
  it { described_class.should respond_to(:require_account?) }
  it { described_class.should respond_to(:klass_name) }
  it { described_class.should respond_to(:get) }
  it { described_class.should respond_to(:find) }

  it { should respond_to(:fog_model) }
  it { should respond_to(:exists?) }
  it { should respond_to(:to_row) }

  it { should respond_to(:to_s) }
  it "#to_s equals the #id" do
    expect(subject.to_s).to eql(subject.id)
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
brightbox-cli-1.2.2 spec/support/shared/api_resource_examples.rb
brightbox-cli-1.2.1 spec/support/shared/api_resource_examples.rb
brightbox-cli-1.2.0 spec/support/shared/api_resource_examples.rb
brightbox-cli-1.1.0 spec/support/shared/api_resource_examples.rb
brightbox-cli-1.0.0 spec/support/shared/api_resource_examples.rb
brightbox-cli-1.0.0.rc2 spec/support/shared/api_resource_examples.rb
brightbox-cli-1.0.0.rc1 spec/support/shared/api_resource_examples.rb