Sha256: afe3e34cd837c173d57e6e8c6242bc3b0ffccdb066acabe12808ad9664572960

Contents?: true

Size: 483 Bytes

Versions: 11

Compression:

Stored size: 483 Bytes

Contents

#
# This file is part of the ballast gem. Copyright (C) 2013 and above Shogun <shogun@cowtech.it>.
# Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php.
#

require "spec_helper"

describe Ballast::Errors::Base do
  subject { Ballast::Errors::Base.new("ERROR") }

  describe ".initialize" do
    it "should save the details" do
      expect(subject.message).to eq("")
      expect(subject.details).to eq("ERROR")
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
ballast-2.2.4 spec/ballast/errors_spec.rb
ballast-2.2.3 spec/ballast/errors_spec.rb
ballast-2.2.2 spec/ballast/errors_spec.rb
ballast-2.2.1 spec/ballast/errors_spec.rb
ballast-2.2.0 spec/ballast/errors_spec.rb
ballast-2.1.3 spec/ballast/errors_spec.rb
ballast-2.1.2 spec/ballast/errors_spec.rb
ballast-2.1.1 spec/ballast/errors_spec.rb
ballast-2.1.0 spec/ballast/errors_spec.rb
ballast-2.0.1 spec/ballast/errors_spec.rb
ballast-2.0.0 spec/ballast/errors_spec.rb