Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
flyerhzm committed Jun 1, 2024
1 parent 18dbcc0 commit 33336ce
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions spec/synvert/core/rewriter/instance_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -549,10 +549,6 @@ class User
= form_for @post do |f|
= form_for @post do |f|
EOS
output = <<~EOS
= form_for post do |f|
= form_for post do |f|
EOS
allow(File).to receive(:read).with('./app/views/posts/_form.html.haml', encoding: 'UTF-8').and_return(input)
result = instance.test
expect(result.file_path).to eq 'app/views/posts/_form.html.haml'
Expand All @@ -578,10 +574,6 @@ class User
= form_for @post do |f|
= form_for @post do |f|
EOS
output = <<~EOS
= form_for post do |f|
= form_for post do |f|
EOS
allow(File).to receive(:read).with('./app/views/posts/_form.html.slim', encoding: 'UTF-8').and_return(input)
result = instance.test
expect(result.file_path).to eq 'app/views/posts/_form.html.slim'
Expand Down

0 comments on commit 33336ce

Please sign in to comment.