changelog shortlog tags changeset manifest revisions annotate raw

vendor/plugins/rspec/lib/spec/matchers/exist.rb

changeset 15: 64acf98d15f4
author: moriq@moriq.com
date: Mon Mar 10 10:12:58 2008 +0900 (16 years ago)
permissions: -rw-r--r--
description: add plugins rspec
1module Spec
2 module Matchers
3 class Exist
4 def matches? actual
5 @actual = actual
6 @actual.exist?
7 end
8 def failure_message
9 "expected #{@actual.inspect} to exist, but it doesn't."
10 end
11 def negative_failure_message
12 "expected #{@actual.inspect} to not exist, but it does."
13 end
14 end
15 def exist; Exist.new; end
16 end
17end