Skip to content

Commit

Permalink
test: remove spec
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Feb 2, 2024
1 parent c7b725f commit d528148
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions spec/rubocop/cop/rspec/rails/minitest_assertions_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -335,18 +335,6 @@
RUBY
end

it 'registers an offense when using `assert_in_delta` with ' \
'a missing delta' do
expect_offense(<<~RUBY)
assert_in_delta a, b, "whoops, we forgot about the actual delta!"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Use `expect(b).to be_within("whoops, we forgot about the actual delta!").of(a)`.
RUBY

expect_correction(<<~RUBY)
expect(b).to be_within("whoops, we forgot about the actual delta!").of(a)
RUBY
end

it 'registers an offense when using `assert_in_delta` with ' \
'multi-line arguments' do
expect_offense(<<~RUBY)
Expand Down

0 comments on commit d528148

Please sign in to comment.