From f55ba2e4e50b43276ef002fb1e5c56850dd7343d Mon Sep 17 00:00:00 2001 From: tsaleh Date: Fri, 6 Apr 2007 18:05:55 +0000 Subject: [PATCH] typo git-svn-id: https://svn.thoughtbot.com/plugins/shoulda/trunk@88 7bbfaf0e-4d1d-0410-9690-a8bb5f8ef2aa --- README | 13 +++++++------ lib/active_record_helpers.rb | 2 +- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/README b/README index c73d4b31..192fd54c 100644 --- a/README +++ b/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 \ No newline at end of file diff --git a/lib/active_record_helpers.rb b/lib/active_record_helpers.rb index 276ec4c8..13b21d0c 100644 --- a/lib/active_record_helpers.rb +++ b/lib/active_record_helpers.rb @@ -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