Skip to content

Commit 126c0bc

Browse files
committed
Fix flaky test: ensure the json gem is loaded
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
1 parent ed730fc commit 126c0bc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spec/webmachine/adapters/rack_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
require 'spec_helper'
44
require 'webmachine/spec/adapter_lint'
55
require 'rack/test'
6+
require 'json'
67

78
describe Webmachine::Adapters::Rack do
89
it_should_behave_like :adapter_lint do

0 commit comments

Comments
 (0)