Sha256: be58711a282e8228ab5ae0e87020a251429c21eeeacbd1ab5e9e38a19bcf0aed

Contents?: true

Size: 401 Bytes

Versions: 3

Compression:

Stored size: 401 Bytes

Contents

require "helper"

describe "Configuration" do
  it "should allow to set custom settings" do
    CentrumFaktur.configure do |config|
      config.login     = "john"
      config.password  = "secret"
      config.subdomain = "john-doe"
    end

    assert_equal "john", CentrumFaktur.login
    assert_equal "secret", CentrumFaktur.password
    assert_equal "john-doe", CentrumFaktur.subdomain
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
centrum_faktur-0.2.0 test/configuration_test.rb
centrum_faktur-0.1.0 test/configuration_test.rb
centrum_faktur-0.0.1 test/configuration_test.rb