Skip to content

Commit 8bb6aa9

Browse files
committed
Remove redundant watcher preservation coverage
1 parent 5de8924 commit 8bb6aa9

1 file changed

Lines changed: 0 additions & 19 deletions

File tree

react_on_rails/spec/react_on_rails/generators/install_generator_spec.rb

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff 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\nputs 'custom'\n")
63536334

0 commit comments

Comments
 (0)