Skip to content
Browse files

Changed a test to fail, for when virtual attributes are scrubbed.

  • Loading branch information...
1 parent 18e945e commit 01edc9900c9d257dc322ada675405fc6312f1bae @laserlemon committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/test_scrubby.rb
View
4 test/test_scrubby.rb
@@ -83,10 +83,10 @@ class TestScrubby < Test::Unit::TestCase
@user = User.new
end
- should 'do nothing' do
+ should 'clean the value' do
middle_name = ' Joel Michael '
@user.middle_name = middle_name
- assert_equal middle_name, @user.middle_name
+ assert_not_equal middle_name, @user.middle_name
end
end

0 comments on commit 01edc99

Please sign in to comment.
Something went wrong with that request. Please try again.