Sha256: d8ed9f70b88d82445ec3ddfa845b5dbb6fe2a0a7233e2aceac024d46bd2ffdb5

Contents?: true

Size: 619 Bytes

Versions: 11

Compression:

Stored size: 619 Bytes

Contents

require_relative '../../../test_helper'

module Vedeu
  describe DummyCommand do
    let(:described_class) { DummyCommand }
    let(:subject)         { described_class.dispatch(command) }
    let(:command)         {}

    it 'returns a Symbol' do
      subject.must_be_instance_of(Symbol)
    end

    context 'when the value exists' do
      let(:command) { :test_command }

      it 'returns the value' do
        subject.must_equal(:test_command)
      end
    end

    context 'when the value does not exist' do
      it 'returns the default value' do
        subject.must_equal(:dummy)
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
vedeu-0.0.25 test/lib/vedeu/repository/dummy_command_test.rb
vedeu-0.0.24 test/lib/vedeu/repository/dummy_command_test.rb
vedeu-0.0.23 test/lib/vedeu/repository/dummy_command_test.rb
vedeu-0.0.22 test/lib/vedeu/repository/dummy_command_test.rb
vedeu-0.0.21 test/lib/vedeu/repository/dummy_command_test.rb
vedeu-0.0.20 test/lib/vedeu/repository/dummy_command_test.rb
vedeu-0.0.19 test/lib/vedeu/repository/dummy_command_test.rb
vedeu-0.0.18 test/lib/vedeu/repository/dummy_command_test.rb
vedeu-0.0.17 test/lib/vedeu/repository/dummy_command_test.rb
vedeu-0.0.16 test/lib/vedeu/repository/dummy_command_test.rb
vedeu-0.0.15 test/lib/vedeu/repository/dummy_command_test.rb