aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/test/fixtures
diff options
context:
space:
mode:
authorPiotr Chmolowski <piotr@chmolowski.pl>2014-03-08 23:09:54 +0100
committerPiotr Chmolowski <piotr@chmolowski.pl>2014-03-09 08:47:17 +0100
commit025c691536b22cc3f0ba802f6c303dd6f955c1c3 (patch)
tree05f18a57f6c48db8528f08bed3cac3096be91f6b /actionview/test/fixtures
parent45efd0ebf77811e43cebc68400c24652133a0f99 (diff)
downloadrails-025c691536b22cc3f0ba802f6c303dd6f955c1c3.tar.gz
rails-025c691536b22cc3f0ba802f6c303dd6f955c1c3.tar.bz2
rails-025c691536b22cc3f0ba802f6c303dd6f955c1c3.zip
Ensure LookupContext in Digestor selects correct variant
Related to: #14242 #14243 14293 Variants passed to LookupContext#find() seem to be ignored, so I've used the setter instead: `finder.variants = [ variant ]`. I've also added some more test cases for variants. Hopefully this time passing tests will mean it actually works.
Diffstat (limited to 'actionview/test/fixtures')
-rw-r--r--actionview/test/fixtures/test/hello_world.html+phone.erb1
-rw-r--r--actionview/test/fixtures/test/hello_world.text+phone.erb1
2 files changed, 2 insertions, 0 deletions
diff --git a/actionview/test/fixtures/test/hello_world.html+phone.erb b/actionview/test/fixtures/test/hello_world.html+phone.erb
new file mode 100644
index 0000000000..b4f236f878
--- /dev/null
+++ b/actionview/test/fixtures/test/hello_world.html+phone.erb
@@ -0,0 +1 @@
+Hello phone! \ No newline at end of file
diff --git a/actionview/test/fixtures/test/hello_world.text+phone.erb b/actionview/test/fixtures/test/hello_world.text+phone.erb
new file mode 100644
index 0000000000..611e2ee442
--- /dev/null
+++ b/actionview/test/fixtures/test/hello_world.text+phone.erb
@@ -0,0 +1 @@
+Hello texty phone! \ No newline at end of file