Sha256: 5c00ac96ac7971554e6d637f2a43e7b5545343437db88f3200ad1aef1c02cdde

Contents?: true

Size: 578 Bytes

Versions: 7

Compression:

Stored size: 578 Bytes

Contents

require_relative '../../test_helper'

describe OdeonUk do
  describe '.configuration' do
    describe '.method' do
      it 'sets default value' do
        OdeonUk.configuration.method.must_equal(:html)
      end
    end
  end

  describe '.configure' do
    before do
      OdeonUk.configure do |config|
        config.method = :api
      end
    end

    after do
      OdeonUk.configure do |config|
        config.method = :html
      end
    end

    it 'sets the small words for the gem to downcase' do
      OdeonUk.configuration.method.must_equal(:api)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
odeon_uk-3.0.6 test/lib/odeon_uk/configuration_test.rb
odeon_uk-3.0.5 test/lib/odeon_uk/configuration_test.rb
odeon_uk-3.0.4 test/lib/odeon_uk/configuration_test.rb
odeon_uk-3.0.3 test/lib/odeon_uk/configuration_test.rb
odeon_uk-3.0.2 test/lib/odeon_uk/configuration_test.rb
odeon_uk-3.0.1 test/lib/odeon_uk/configuration_test.rb
odeon_uk-3.0.0 test/lib/odeon_uk/configuration_test.rb