Sha256: a1a40e3bba01e7004ec3c27934d4c73c4f55890b22e79ba652be7f2f0bdbb341
Contents?: true
Size: 824 Bytes
Versions: 2
Compression:
Stored size: 824 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(:workers) { should eql(described_class::DEFAULT_OPTIONS[:workers]) } its(:rack_app) { should be_a(Berkshelf::API::RackApp) } context "given a different port" do before { options[:port] = 26210 } its(:port) { should eql(26210) } end context "given a different amount of workers" do before { options[:workers] = 20 } its(:workers) { should eql(20) } end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
berkshelf-api-0.2.0 | spec/unit/berkshelf/api/rest_gateway_spec.rb |
berkshelf-api-0.1.0 | spec/unit/berkshelf/api/rest_gateway_spec.rb |