mirror of
https://github.com/basecamp/once-campfire.git
synced 2026-05-04 18:01:02 +09:00
Allow for default values
This commit is contained in:
@@ -15,4 +15,9 @@ class AccountTest < ActiveSupport::TestCase
|
||||
accounts(:signal).update!(settings: { "restrict_room_creation_to_administrators" => "false" })
|
||||
assert_not accounts(:signal).reload.restrict_room_creation_to_administrators?
|
||||
end
|
||||
|
||||
test "default settings" do
|
||||
a = Account.create! name: "New account"
|
||||
assert_equal({ "restrict_room_creation_to_administrators" => false }, a[:settings])
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user