mirror of
https://github.com/thoughtbot/shoulda-matchers.git
synced 2022-11-09 12:01:38 -05:00
Cosmetic: Whitespace
This commit is contained in:
parent
226f5b8f63
commit
e2ae4a2596
27 changed files with 148 additions and 151 deletions
|
@ -41,14 +41,12 @@ module Shoulda # :nodoc:
|
||||||
self
|
self
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
def not_with(value)
|
def not_with(value)
|
||||||
raise "You may not call both with and not_with" if @value_to_pass
|
raise "You may not call both with and not_with" if @value_to_pass
|
||||||
@value_to_fail = value
|
@value_to_fail = value
|
||||||
self
|
self
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
def matches?(subject)
|
def matches?(subject)
|
||||||
super(subject)
|
super(subject)
|
||||||
@expected_message ||= :blank
|
@expected_message ||= :blank
|
||||||
|
|
|
@ -19,7 +19,6 @@ module Shoulda # :nodoc:
|
||||||
false
|
false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def allows_value_of(value, message = nil)
|
def allows_value_of(value, message = nil)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue