spec/ballast/errors_spec.rb in ballast-1.9.3 vs spec/ballast/errors_spec.rb in ballast-2.0.0

- old
+ new

@@ -3,15 +3,15 @@ # 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 Ballast::Errors::Base do + subject { Ballast::Errors::Base.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") + it "should save the details" do + expect(subject.message).to eq("") + expect(subject.details).to eq("ERROR") end end end \ No newline at end of file