mirror of
https://github.com/we-promise/sure.git
synced 2026-04-18 03:24:09 +00:00
18 lines
418 B
Ruby
18 lines
418 B
Ruby
require "test_helper"
|
|
|
|
class FamilyTest < ActiveSupport::TestCase
|
|
include SyncableInterfaceTest
|
|
|
|
def setup
|
|
@syncable = families(:dylan_family)
|
|
end
|
|
|
|
test "available_merchants includes family merchants without transactions" do
|
|
family = families(:dylan_family)
|
|
|
|
new_merchant = family.merchants.create!(name: "New Test Merchant")
|
|
|
|
assert_includes family.available_merchants, new_merchant
|
|
end
|
|
end
|