Skip to content

Commit

Permalink
Rename test class names that collided (#1330)
Browse files Browse the repository at this point in the history
* do not register test constants

* rename tests to have unique class names

* revert constants generation change

* Create many-candles-tan.md
  • Loading branch information
joelhawksley authored Aug 23, 2022
1 parent 41425cc commit b89ac4d
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/many-candles-tan.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/view-components": patch
---

Rename test class names that collided
2 changes: 1 addition & 1 deletion test/components/alpha/auto_complete/item_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require "test_helper"

class PrimerAutoCompleteItemTest < Minitest::Test
class PrimerAlphaAutoCompleteItemTest < Minitest::Test
include Primer::ComponentTestHelpers

def test_renders_item_with_correct_attributes
Expand Down
2 changes: 1 addition & 1 deletion test/components/alpha/auto_complete_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require "test_helper"

class PrimerAutoCompleteTest < Minitest::Test
class PrimerAlphaAutoCompleteTest < Minitest::Test
include Primer::ComponentTestHelpers

def test_raises_if_no_label_text_is_passed_in
Expand Down
2 changes: 1 addition & 1 deletion test/components/beta/auto_complete/item_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require "test_helper"

class PrimerAutoCompleteItemTest < Minitest::Test
class PrimerBetaAutoCompleteItemTest < Minitest::Test
include Primer::ComponentTestHelpers

def test_renders_item_with_correct_attributes
Expand Down
2 changes: 1 addition & 1 deletion test/components/beta/auto_complete_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require "test_helper"

class PrimerAutoCompleteTest < Minitest::Test
class PrimerBetaAutoCompleteTest < Minitest::Test
include Primer::ComponentTestHelpers

def test_raises_if_no_label_text_is_passed_in
Expand Down

0 comments on commit b89ac4d

Please sign in to comment.