Sha256: f77690aa9accea4a3dc7b499243d0bfe99e4314ad8d45d3883b355816eb70f3a
Contents?: true
Size: 1.12 KB
Versions: 1
Compression:
Stored size: 1.12 KB
Contents
require_relative '../../test_helper' module Troo describe Configuration do let(:described_class) { Configuration } subject { described_class.load('config/trooconf.yml', :test) } context 'configures' do it 'the name of the configuration' do subject.name.must_equal('My Example Test Configuration') end it 'the API url' do subject.api_url.must_equal('https://api.trello.com/1') end it 'the API key' do subject.api_key.must_equal('some_key') end it 'the API token' do subject.api_token.must_equal('some_secret') end it 'the API OAuth token' do subject.api_oauth_token.must_equal('some_oauth_token') end it 'the API OAuth token secret' do subject.api_oauth_token_secret .must_equal('some_oauth_token_secret') end it 'the database to use' do subject.database.must_equal(2) end it 'communication with the Trello API' do subject.allow_remote.must_equal(true) end it 'log output' do subject.logs.must_equal(true) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
troo-0.0.10 | test/lib/troo/configuration_test.rb |