spec/low_level_spec.rb in newslettre-0.2.3 vs spec/low_level_spec.rb in newslettre-0.2.4

- old
+ new

@@ -40,9 +40,19 @@ VCR.use_cassette('upon raising errors') do @api.delete :name => "A Newsletter that will _hopefully_ never, ever exist!" end }.should raise_error(Newslettre::API::ClientFailure) end + + it "should contain error message" do + VCR.use_cassette('upon raising errors') do + begin + @api.delete :name => "A Newsletter that will _hopefully_ never, ever exist!" + rescue Newslettre::API::ClientFailure => e + e.message.should be == "A Newsletter that will _hopefully_ never, ever exist! does not exist" + end + end + end end describe Newslettre::Identity do use_vcr_cassette