Skip to content

Commit

Permalink
revert tests
Browse files Browse the repository at this point in the history
  • Loading branch information
joelhawksley committed Jun 8, 2022
1 parent b333cbc commit 3e4372c
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions test/rubocop/deprecated_arguments_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,29 +58,4 @@ def test_deprecated_argument_with_nil_not_autocorrected
assert_equal 1, cop.offenses.count
refute cop.offenses.first.correctable?
end

def test_supports_boolean_values
investigate(cop, <<-RUBY)
Primer::Beta::AutoComplete.new(is_label_visible: false)
RUBY

assert_equal 1, cop.offenses.count
assert_equal "Primer::Beta::AutoComplete.new(visually_hide_label: true)", cop.offenses.first.corrector.rewrite.strip
end

def test_identifies_is_label_inline
investigate(cop, <<-RUBY)
Primer::Beta::AutoComplete.new(label_text: "User", is_label_inline: true)
RUBY

assert_equal 1, cop.offenses.count
end

def test_identifies_with_icon
investigate(cop, <<-RUBY)
Primer::Beta::AutoComplete.new(label_text: "User", with_icon: true)
RUBY

assert_equal 1, cop.offenses.count
end
end

0 comments on commit 3e4372c

Please sign in to comment.