Sha256: 09461d4660eee99a3936b764b2f1c42b48d945ed157c8dd6cc8c982fe7f134ee

Contents?: true

Size: 457 Bytes

Versions: 3

Compression:

Stored size: 457 Bytes

Contents

$:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
require "invalid_command_exception"

describe MavenHelperScript::InvalidCommandException do
  before (:each) do
    @commands = Hash.new()
    @commands["m"] = "make"
    @error = MavenHelperScript::InvalidCommandException.new(@commands, "boom")
  end

  it "should print command mapping" do
    @error.commands.should == @commands
    @error.failedCommand.should == "boom"
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
maven-helper-script-0.1.6 test/invalid_command_exception_spec.rb
maven-helper-script-0.1.4 test/invalid_command_exception_spec.rb
maven-helper-script-0.1.3 test/invalid_command_exception_spec.rb