projects
/
rails.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Removed bogus belongs_to user declaration.
[rails.git]
/
vendor
/
gems
/
rspec-1.1.2
/
lib
/
spec
/
matchers
/
exist.rb
1
module 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
17
end