Sha256: 48fe2ccdba17d3fd427f61f372221cee6c1792b2f7e6e6cabec39dcba47c275f
Contents?: true
Size: 568 Bytes
Versions: 6
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(mock("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
6 entries across 6 versions & 1 rubygems