File tree Expand file tree Collapse file tree
react_on_rails/spec/react_on_rails/generators Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6329,25 +6329,6 @@ class ActiveSupport::TestCase
63296329 end
63306330 end
63316331
6332- it "preserves an existing Shakapacker watch binstub without prompting or changing its permissions" do
6333- shakapacker_watch = <<~RUBY
6334- #!/usr/bin/env ruby
6335- puts "Shakapacker-owned watcher"
6336- RUBY
6337- shakapacker_watch_path = File . join ( destination_root , "bin/shakapacker-watch" )
6338- simulate_existing_file ( "bin/shakapacker-watch" , shakapacker_watch )
6339- File . chmod ( 0o640 , shakapacker_watch_path )
6340-
6341- expect ( install_generator . shell ) . not_to receive ( :file_collision )
6342-
6343- Dir . chdir ( destination_root ) do
6344- install_generator . send ( :add_bin_scripts )
6345- end
6346-
6347- expect ( File . read ( shakapacker_watch_path ) ) . to eq ( shakapacker_watch )
6348- expect ( File . stat ( shakapacker_watch_path ) . mode & 0o777 ) . to eq ( 0o640 )
6349- end
6350-
63516332 it "detects custom bin/dev files" do
63526333 simulate_existing_file ( "bin/dev" , "#!/usr/bin/env ruby\n puts 'custom'\n " )
63536334
You can’t perform that action at this time.
0 commit comments