We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3560b5b commit d476a4bCopy full SHA for d476a4b
lib/assets/javascripts/react_ujs.js.erb
@@ -26,7 +26,7 @@
26
parent = searchSelector;
27
break;
28
case 'string':
29
- selector = searchSelector + '[' + window.ReactRailsUJS.CLASS_NAME_ATTR + ']';
+ selector = searchSelector + ' [' + window.ReactRailsUJS.CLASS_NAME_ATTR + ']';
30
parent = document;
31
break
32
default:
test/generators/install_generator_test.rb
@@ -34,7 +34,8 @@ def copy_directory(dir)
34
assert_application_file_modified
35
end
36
37
- test "modifies `application.js` it's empty" do
+ test "modifies `application.js` if it's empty" do
38
+ FileUtils.mkdir_p destination_root + '/app/assets/javascripts/'
39
File.write(destination_root + '/app/assets/javascripts/application.js', '')
40
41
run_generator
0 commit comments