Sha256: 19c0fc078985c8a47ba6cfc5fbbc2aa0f02d11bfae021e982c4f10c5014fe27f
Contents?: true
Size: 493 Bytes
Versions: 4
Compression:
Stored size: 493 Bytes
Contents
require File.dirname(__FILE__) + '/../spec_helper' require 'mspec/expectations/expectations' describe ExpectationNotMetError do it "is a subclass of StandardError" do ExpectationNotMetError.ancestors.should include(StandardError) end end describe Expectation, "#fail_with" do it "raises an ExpectationNotMetError" do lambda { Expectation.fail_with "expected this", "to equal that" }.should raise_error(ExpectationNotMetError, "expected this to equal that") end end
Version data entries
4 entries across 4 versions & 1 rubygems