Skip to content

Commit 2080136

Browse files
committed
Rename test asset files due to collisions
1 parent 10cf766 commit 2080136

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

test/jsxtransform_test.rb

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,6 @@ class JSXTransformTest < ActionDispatch::IntegrationTest
3232
FileUtils.rm_r CACHE_PATH if CACHE_PATH.exist?
3333
end
3434

35-
test 'can use dropped in version of JSX transformer' do
36-
hidden_path = File.expand_path("../dummy/vendor/assets/react/JSXTransformer__.js", __FILE__)
37-
replacing_path = File.expand_path("../dummy/vendor/assets/react/JSXTransformer.js", __FILE__)
38-
39-
FileUtils.mv hidden_path, replacing_path
40-
get 'assets/example2.js'
41-
assert_response :success
42-
assert_equal 'test_confirmation_token_jsx_transformed;', @response.body
43-
FileUtils.mv replacing_path, hidden_path
44-
FileUtils.rm_r CACHE_PATH if CACHE_PATH.exist?
45-
end
46-
4735
test 'asset pipeline should transform JSX + Coffeescript' do
4836
get 'assets/example2.js'
4937
assert_response :success
@@ -56,4 +44,15 @@ class JSXTransformTest < ActionDispatch::IntegrationTest
5644
assert_equal EXPECTED_JS_2.gsub(/\s/, ''), @response.body.gsub(/\s/, '')
5745
end
5846

47+
test 'can use dropped in version of JSX transformer' do
48+
hidden_path = File.expand_path("../dummy/vendor/assets/react/JSXTransformer__.js", __FILE__)
49+
replacing_path = File.expand_path("../dummy/vendor/assets/react/JSXTransformer.js", __FILE__)
50+
51+
FileUtils.mv hidden_path, replacing_path
52+
get 'assets/example3.js'
53+
assert_response :success
54+
assert_equal 'test_confirmation_token_jsx_transformed;', @response.body
55+
FileUtils.mv replacing_path, hidden_path
56+
FileUtils.rm_r CACHE_PATH if CACHE_PATH.exist?
57+
end
5958
end

0 commit comments

Comments
 (0)