Skip to content

Commit

Permalink
Fix flaky test: ensure the json gem is loaded
Browse files Browse the repository at this point in the history
It seems there are some tests that result in the json gem being loaded.
If the spec/webmachine/adapters/rack_spec.rb:57 test happens to run before
these tests, the json gem will not be loaded and the test fails. This is
reproducible with the following command.

rspec --seed 34885
  • Loading branch information
orien committed Jan 28, 2023
1 parent ed730fc commit 126c0bc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/webmachine/adapters/rack_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
require 'spec_helper'
require 'webmachine/spec/adapter_lint'
require 'rack/test'
require 'json'

describe Webmachine::Adapters::Rack do
it_should_behave_like :adapter_lint do
Expand Down

0 comments on commit 126c0bc

Please sign in to comment.