mirror of
https://github.com/thoughtbot/shoulda-matchers.git
synced 2022-11-09 12:01:38 -05:00
typo
git-svn-id: https://svn.thoughtbot.com/plugins/shoulda/trunk@88 7bbfaf0e-4d1d-0410-9690-a8bb5f8ef2aa
This commit is contained in:
parent
f77e17b6e4
commit
f55ba2e4e5
2 changed files with 8 additions and 7 deletions
13
README
13
README
|
@ -4,13 +4,14 @@ A collection of Test::Unit helper methods.
|
|||
|
||||
Adds helpers for
|
||||
|
||||
1. context and should statements
|
||||
1. Common ActiveRecord model tests
|
||||
1. A few general purpose assertions
|
||||
* context and should statements
|
||||
* Common ActiveRecord model tests
|
||||
* A few general purpose assertions
|
||||
|
||||
== Todo
|
||||
|
||||
1. Controller test helpers
|
||||
1. General code cleanups
|
||||
1. More options for AR helpers
|
||||
* Many more tests (of the tests). Specifically, the ActiveRecord macros need to be tested.
|
||||
* Controller test helpers
|
||||
* General code cleanups
|
||||
* More options for AR helpers
|
||||
|
|
@ -151,7 +151,7 @@ module ThoughtBot # :nodoc:
|
|||
object.send("#{attribute}=", v)
|
||||
object.save
|
||||
# assert object.errors.on(attribute), "There are no errors set on #{attribute} after being set to \"#{v}\""
|
||||
assert_contains(object.errors.on(attribute), opts[:messgae], "when set to \"#{v}\"")
|
||||
assert_contains(object.errors.on(attribute), opts[:message], "when set to \"#{v}\"")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue