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