Sha256: b27eb7a198ce377303c95d3a8838126c13398e40a634048b406e98815fdc829e

Contents?: true

Size: 523 Bytes

Versions: 17

Compression:

Stored size: 523 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::BaseError do
  subject { Ballast::Errors::BaseError.new("ERROR") }

  describe ".initialize" do
    it "should propagate the message also as a response" do
      expect(subject.message).to eq("ERROR")
      expect(subject.response).to eq("ERROR")
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
ballast-1.9.3 spec/ballast/errors_spec.rb
ballast-1.9.2 spec/ballast/errors_spec.rb
ballast-1.9.1 spec/ballast/errors_spec.rb
ballast-1.9.0 spec/ballast/errors_spec.rb
ballast-1.8.0 spec/ballast/errors_spec.rb
ballast-1.7.0 spec/ballast/errors_spec.rb
ballast-1.6.0 spec/ballast/errors_spec.rb
ballast-1.5.3 spec/ballast/errors_spec.rb
ballast-1.5.2 spec/ballast/errors_spec.rb
ballast-1.5.1 spec/ballast/errors_spec.rb
ballast-1.5.0 spec/ballast/errors_spec.rb
ballast-1.4.0 spec/ballast/errors_spec.rb
ballast-1.3.0 spec/ballast/errors_spec.rb
ballast-1.2.0 spec/ballast/errors_spec.rb
ballast-1.1.2 spec/ballast/errors_spec.rb
ballast-1.1.1 spec/ballast/errors_spec.rb
ballast-1.1.0 spec/ballast/errors_spec.rb