Skip to content

Commit

Permalink
added missing commas to should_change macro examples
Browse files Browse the repository at this point in the history
  • Loading branch information
gfairbrother committed Oct 9, 2008
1 parent 44a8206 commit f1be8d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/shoulda/macros.rb
Expand Up @@ -26,8 +26,8 @@ module Macros
# Combinations of <tt>:by</tt>, <tt>:from</tt>, and <tt>:to</tt> are allowed:
#
# should_change "@post.title" # => assert the value changed in some way
# should_change "@post.title" :from => "old" # => assert the value changed to anything other than "old"
# should_change "@post.title" :to => "new" # => assert the value changed from anything other than "new"
# should_change "@post.title", :from => "old" # => assert the value changed to anything other than "old"
# should_change "@post.title", :to => "new" # => assert the value changed from anything other than "new"
def should_change(expression, options = {})
by, from, to = get_options!([options], :by, :from, :to)
stmt = "change #{expression.inspect}"
Expand Down

0 comments on commit f1be8d1

Please sign in to comment.