Skip to content

Commit 1c92a45

Browse files
committed
Test that the proper version of react is found by sprockets
1 parent f5e47ed commit 1c92a45

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/react_test.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,9 @@ class ReactTest < ActionDispatch::IntegrationTest
2727
ENV.delete('RAILS_GROUPS')
2828
end
2929
end
30+
31+
test "the development version is loaded" do
32+
asset = Rails.application.assets.find_asset('react')
33+
assert asset.pathname.to_s.end_with?('development/react.js')
34+
end
3035
end

0 commit comments

Comments
 (0)