aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/fixture_set
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/cases/fixture_set')
-rw-r--r--activerecord/test/cases/fixture_set/file_test.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/activerecord/test/cases/fixture_set/file_test.rb b/activerecord/test/cases/fixture_set/file_test.rb
index 242e7a9bec..e64b90507e 100644
--- a/activerecord/test/cases/fixture_set/file_test.rb
+++ b/activerecord/test/cases/fixture_set/file_test.rb
@@ -135,6 +135,12 @@ END
end
end
+ def test_erb_filename
+ filename = 'filename.yaml'
+ erb = File.new(filename).send(:prepare_erb, "<% Rails.env %>\n")
+ assert_equal erb.filename, filename
+ end
+
private
def tmp_yaml(name, contents)
t = Tempfile.new name