Sha256: 36440a3d9bd7d55b9267202c123a4182a0a911245219b976238c13cc90a49575

Contents?: true

Size: 457 Bytes

Versions: 5

Compression:

Stored size: 457 Bytes

Contents

require 'spec_helper'

describe Happi::Configuration do
  describe 'options' do
    specify { expect(Happi::Configuration.new(host: 'http://www.google.com').host).to eql('http://www.google.com') }
    specify { expect(Happi::Configuration.new(port: 80).port).to eql(80) }

    specify do
      Happi::Client.configure { |config| config.host = 'http://localhost:3000' }
      expect(Happi::Client.config.host).to eq 'http://localhost:3000'
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
happi-0.2.0 spec/configuration_spec.rb
happi-0.1.0 spec/configuration_spec.rb
happi-0.0.12 spec/configuration_spec.rb
happi-0.0.11 spec/configuration_spec.rb
happi-0.0.10 spec/configuration_spec.rb