Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
Artur Beljajev committed Dec 4, 2018
1 parent 5f088e6 commit 2f86a67
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/models/contact/disclosable_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ class ContactDisclosableTest < ActiveSupport::TestCase
Contact.disclosable_attributes = @original_disclosable_attributes
end

def test_no_disclosed_attributes_by_default
assert_empty Contact.new.disclosed_attributes
end

def test_disclosable_attributes
assert_equal %w[name email], Contact.disclosable_attributes
end
Expand Down

0 comments on commit 2f86a67

Please sign in to comment.