aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/test/lib
diff options
context:
space:
mode:
authorSean Griffin <sean@seantheprogrammer.com>2014-12-22 18:06:16 -0700
committerSean Griffin <sean@seantheprogrammer.com>2014-12-22 18:06:16 -0700
commitd9d865aa40b29b4b5aba71e9f6108eaab7206b1e (patch)
tree1f79cd684fd9c10d4d76d065be09fd4848ed3cf1 /actionview/test/lib
parent8259d795606e3f3333537baadf0d1a37c4fd4fd0 (diff)
parentb26338e83b4249ede5ea1368498b4dbf31b44612 (diff)
downloadrails-d9d865aa40b29b4b5aba71e9f6108eaab7206b1e.tar.gz
rails-d9d865aa40b29b4b5aba71e9f6108eaab7206b1e.tar.bz2
rails-d9d865aa40b29b4b5aba71e9f6108eaab7206b1e.zip
Merge pull request #18156 from claudiob/better-record-identifier-tests
Better tests for AV::RecordIdentifier
Diffstat (limited to 'actionview/test/lib')
-rw-r--r--actionview/test/lib/controller/fake_models.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/actionview/test/lib/controller/fake_models.rb b/actionview/test/lib/controller/fake_models.rb
index cb02a56cb4..789b1d198b 100644
--- a/actionview/test/lib/controller/fake_models.rb
+++ b/actionview/test/lib/controller/fake_models.rb
@@ -170,3 +170,15 @@ end
class Car < Struct.new(:color)
end
+
+class Plane
+ attr_reader :to_key
+
+ def model_name
+ OpenStruct.new param_key: 'airplane'
+ end
+
+ def save
+ @to_key = [1]
+ end
+end