Sha256: 202cd559cb0e163edc09b8b97a983472154be68bef0d82af3a45a04bbd8ef275
Contents?: true
Size: 364 Bytes
Versions: 1
Compression:
Stored size: 364 Bytes
Contents
require 'test_helper' module ActiveModel class Serializer class ScopeTest < ActiveRecord::TestCase def setup @serializer = ProfileSerializer.new(nil, scope: current_user) end def test_scope assert_equal('user', @serializer.scope) end private def current_user 'user' end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_model_serializers_rails_2.3-0.9.0.pre1 | test/unit/active_model/serializer/scope_test.rb |