Sha256: 1776afc9b24fa1b5c79a7f1cd9128772c8edf005b9e9d88d9701a3261cc5e5c2

Contents?: true

Size: 505 Bytes

Versions: 3

Compression:

Stored size: 505 Bytes

Contents

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

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

    it { subject.must_be_instance_of(Symbol) }

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

      it { subject.must_equal(:test_command) }
    end

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
vedeu-0.0.14 test/lib/vedeu/repository/dummy_command_test.rb
vedeu-0.0.13 test/lib/vedeu/repository/dummy_command_test.rb
vedeu-0.0.12 test/lib/vedeu/repository/dummy_command_test.rb