We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d47eb7e commit f4dba0fCopy full SHA for f4dba0f
1 file changed
test/unit/serializer/link_builder_test.rb
@@ -4,6 +4,11 @@
4
5
class LinkBuilderTest < ActionDispatch::IntegrationTest
6
def setup
7
+ # the route format is being set directly in test_helper and is being set differently depending on
8
+ # the order in which the namespaces get loaded. in order to prevent random test seeds to fail we need to set the
9
+ # default configuration in the test 'setup'.
10
+ JSONAPI.configuration.route_format = :underscored_route
11
+
12
@base_url = "http://example.com"
13
@route_formatter = JSONAPI.configuration.route_formatter
14
@steve = Person.create(name: "Steve Rogers", date_joined: "1941-03-01")
0 commit comments