Sha256: 1e8e54b97a1e123f52d528f84fa94b366a26411d90e265b0116b03f15a119ba7
Contents?: true
Size: 445 Bytes
Versions: 11
Compression:
Stored size: 445 Bytes
Contents
require File.dirname(__FILE__) + '/../spec_helper' require 'mspec/expectations/expectations' require 'mspec/helpers/flunk' require 'mspec/runner/mspec' describe Object, "#flunk" do before :each do MSpec.stub!(:actions) MSpec.stub!(:current).and_return(mock("spec state", :null_object => true)) end it "raises an ExpectationNotMetError unconditionally" do lambda { flunk }.should raise_error(ExpectationNotMetError) end end
Version data entries
11 entries across 11 versions & 1 rubygems