Sha256: 9a78d6298aa6399a3fdf8aac33f26fb6aa940fd77dddbf37bb41c9354cda2864

Contents?: true

Size: 592 Bytes

Versions: 11

Compression:

Stored size: 592 Bytes

Contents

require 'spec_helper'
require 'berkshelf/api/rest_gateway'

describe Berkshelf::API::RESTGateway do
  describe "ClassMethods" do
    describe "::new" do
      let(:options) { Hash.new }
      subject { described_class.new(options) }

      its(:host) { should eql(described_class::DEFAULT_OPTIONS[:host]) }
      its(:port) { should eql(described_class::DEFAULT_OPTIONS[:port]) }
      its(:app)  { should be_a(Berkshelf::API::RackApp) }

      context "given a different port" do
        before { options[:port] = 26210 }
        its(:port) { should eql(26210) }
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
berkshelf-api-1.4.0 spec/unit/berkshelf/api/rest_gateway_spec.rb
berkshelf-api-1.3.1 spec/unit/berkshelf/api/rest_gateway_spec.rb
berkshelf-api-1.3.0 spec/unit/berkshelf/api/rest_gateway_spec.rb
berkshelf-api-1.2.2 spec/unit/berkshelf/api/rest_gateway_spec.rb
berkshelf-api-1.2.1 spec/unit/berkshelf/api/rest_gateway_spec.rb
berkshelf-api-1.2.0 spec/unit/berkshelf/api/rest_gateway_spec.rb
berkshelf-api-1.2.0.rc2 spec/unit/berkshelf/api/rest_gateway_spec.rb
berkshelf-api-1.2.0.rc1 spec/unit/berkshelf/api/rest_gateway_spec.rb
berkshelf-api-1.1.1 spec/unit/berkshelf/api/rest_gateway_spec.rb
berkshelf-api-1.1.0 spec/unit/berkshelf/api/rest_gateway_spec.rb
berkshelf-api-1.0.0 spec/unit/berkshelf/api/rest_gateway_spec.rb