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