Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add test for attribute inclusion and exclusion.

  • Loading branch information...
commit ea839b22879af67bc46fda8f7681c1097958217c 1 parent 65529a4
@tim authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 test.rb
View
6 test.rb
@@ -70,4 +70,10 @@ def test_diff_against_hash
assert_diff @bob, {:name => 'joe'}, {:name => ['bob', 'joe']}
end
+ def test_inclusion_and_exclusion
+ Person.diff :include => [:id], :exclude => [:email_address]
+
+ assert_diff @alice, @bob, {:id => [1, 2], :name => %w( alice bob )}
+ end
+
end
Please sign in to comment.
Something went wrong with that request. Please try again.