mirror of
https://github.com/we-promise/sure.git
synced 2026-04-19 03:54:08 +00:00
Opt-in to Current fully (#297)
This commit is contained in:
9
test/models/current_test.rb
Normal file
9
test/models/current_test.rb
Normal file
@@ -0,0 +1,9 @@
|
||||
require "test_helper"
|
||||
|
||||
class CurrentTest < ActiveSupport::TestCase
|
||||
test "family returns user family" do
|
||||
user = users(:bob)
|
||||
Current.user = user
|
||||
assert_equal user.family, Current.family
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user