Allow only to pass scope to associations

Closes #483
This commit is contained in:
Santiago Pastorino
2014-01-03 19:47:49 -02:00
parent 60fc55021c
commit 5fa4002039
3 changed files with 13 additions and 29 deletions

View File

@@ -1,17 +0,0 @@
require 'test_helper'
module ActiveModel
class Serializer
class OptionsTest < ActiveModel::TestCase
def setup
@profile = Profile.new({ name: 'Name 1', description: 'Description 1', comments: 'Comments 1' })
end
def test_meta
profile_serializer = ProfileSerializer.new(@profile, root: 'profile', random_option: "This is an option")
assert_equal("This is an option", profile_serializer.options[:random_option])
end
end
end
end