Sha256: 8b934d2c26dd2a13b4045aaa4ba5aae18186e028c9fc7dfb569089636f780a34

Contents?: true

Size: 360 Bytes

Versions: 1

Compression:

Stored size: 360 Bytes

Contents

require 'spec_helper'

describe 'BaseCommand' do

  subject { Commands::BaseCommand.new }

  context 'as an abstract class' do
    it 'raises a NotImplementedError on any methods called' do
      expect{subject.command_id}.to raise_error(NotImplementedError)
      expect{subject.process_command(nil, nil)}.to raise_error(NotImplementedError)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bitmapped-0.2.0 spec/command/base_command_spec.rb