Sha256: 5828e84a2d3f69d362892b132d9825a7e20539824c93cdbe354efc0e5f6f7986
Contents?: true
Size: 568 Bytes
Versions: 3
Compression:
Stored size: 568 Bytes
Contents
require 'spec_helper' require 'mspec/expectations/expectations' require 'mspec/runner/mspec' require 'mspec/guards' require 'mspec/helpers' describe Object, "#flunk" do before :each do MSpec.stub(:actions) MSpec.stub(:current).and_return(double("spec state").as_null_object) end it "raises an SpecExpectationNotMetError unconditionally" do lambda { flunk }.should raise_error(SpecExpectationNotMetError) end it "accepts on argument for an optional message" do lambda {flunk "test"}.should raise_error(SpecExpectationNotMetError) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mspec-1.9.1 | spec/helpers/flunk_spec.rb |
mspec-1.9.0 | spec/helpers/flunk_spec.rb |
mspec-1.8.0 | spec/helpers/flunk_spec.rb |