Sha256: f3227c3634d79349b363781202406479d8d23ae5e825d589c0ecb64d0e051796

Contents?: true

Size: 784 Bytes

Versions: 13

Compression:

Stored size: 784 Bytes

Contents

require 'test_helper'
require 'vedeu/configuration'

module Vedeu
  describe Configuration do
    describe '#configure' do
      it 'returns an empty collection when no options are set' do
        Configuration.configure([]).must_equal({})
      end

      it 'returns the options which instructs Vedeu to run once' do
        Configuration.configure(['--run-once'])
          .must_equal({ interactive: false })
      end

      it 'returns the options which instructs Vedeu to run in cooked mode' do
        Configuration.configure(['--cooked'])
          .must_equal({ mode: :cooked })
      end

      it 'returns the options which instructs Vedeu to run in raw mode' do
        Configuration.configure(['--raw'])
          .must_equal({ mode: :raw })
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
vedeu-0.1.9 test/lib/vedeu/configuration_test.rb
vedeu-0.1.8 test/lib/vedeu/configuration_test.rb
vedeu-0.1.7 test/lib/vedeu/configuration_test.rb
vedeu-0.1.6 test/lib/vedeu/configuration_test.rb
vedeu-0.1.5 test/lib/vedeu/configuration_test.rb
vedeu-0.1.4 test/lib/vedeu/configuration_test.rb
vedeu-0.1.3 test/lib/vedeu/configuration_test.rb
vedeu-0.1.2 test/lib/vedeu/configuration_test.rb
vedeu-0.1.1 test/lib/vedeu/configuration_test.rb
vedeu-0.1.0 test/lib/vedeu/configuration_test.rb
vedeu-0.0.42 test/lib/vedeu/configuration_test.rb
vedeu-0.0.41 test/lib/vedeu/configuration_test.rb
vedeu-0.0.40 test/lib/vedeu/configuration_test.rb