Skip to content

Commit

Permalink
Merge pull request #3971 from 3scale/more-tests
Browse files Browse the repository at this point in the history
A small fix in a test
  • Loading branch information
mayorova authored Jan 23, 2025
2 parents 6a2384c + 2551cd8 commit 15d75c5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ignore:
- "features/**/*"
- "test/**/*"
- "spec/**/*"
- "features"
- "test"
- "spec"
4 changes: 2 additions & 2 deletions test/unit/user_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,12 @@ def test_accessible_services
admin = FactoryBot.build_stubbed(:admin, account: provider)
member = FactoryBot.build_stubbed(:member, account: provider)

assert_equal [service.id, another_service.id], admin.accessible_services.map(&:id)
assert_same_elements [service.id, another_service.id], admin.accessible_services.map(&:id)
assert_equal [], member.accessible_services.map(&:id)

member.member_permission_ids = ['partners']

assert_equal [service.id, another_service.id], member.accessible_services.map(&:id)
assert_same_elements [service.id, another_service.id], member.accessible_services.map(&:id)

member.member_permission_service_ids = [service.id]

Expand Down

0 comments on commit 15d75c5

Please sign in to comment.