Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

32 lines (26 sloc) 0.676 kb
require 'spec_helper'
module Spec
module Matchers
describe "wrap_expectation" do
before { Spec.stub(:deprecate) }
def stub_matcher
@_stub_matcher ||= simple_matcher do
end
end
def failing_matcher
@_failing_matcher ||= simple_matcher do
1.should == 2
end
end
it "should return true if there is no error" do
wrap_expectation stub_matcher do
end.should be_true
end
it "should return false if there is an error" do
wrap_expectation failing_matcher do
raise "error"
end.should be_false
end
end
end
end
Jump to Line
Something went wrong with that request. Please try again.