Sha256: 1df552d3d13420b8ddb5d8a4cd39527e9d185a2082da56aca3c9694cb66f47cc

Contents?: true

Size: 289 Bytes

Versions: 10

Compression:

Stored size: 289 Bytes

Contents

require "spec_helper"

describe Aitch::Namespace do
  it "isolates namespace configuration" do
    ns = Aitch::Namespace.new
    ns.config.user_agent = "MyLib/1.0.0"

    expect(ns.config.user_agent).to eql("MyLib/1.0.0")
    expect(Aitch.config.user_agent).to match(%r[^Aitch])
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
aitch-0.4.1 spec/aitch/namespace_spec.rb
aitch-0.4.0 spec/aitch/namespace_spec.rb
aitch-0.3.0 spec/aitch/namespace_spec.rb
aitch-0.2.1 spec/aitch/namespace_spec.rb
aitch-0.2.0 spec/aitch/namespace_spec.rb
aitch-0.1.5 spec/aitch/namespace_spec.rb
aitch-0.1.4 spec/aitch/namespace_spec.rb
aitch-0.1.3 spec/aitch/namespace_spec.rb
aitch-0.1.2 spec/aitch/namespace_spec.rb
aitch-0.1.1 spec/aitch/namespace_spec.rb