{:ids=>{“./spec/practice_rspec/foo_spec.rb"=>["1:2:1"]}} PracticeRspec::Foo .hello should eq "world" Finished in 0.00177 seconds (files took 0.13821 seconds to load) 1 example, 0 failures 5
do 4 it 'does screwy math' do 5 # monkey patching Calculator affects examples that are 6 # executed after this one! 7 def Calculator.add(x, y) 8 x - y 9 end 10 11 expect(Calculator.add(5, 10)).to eq(-5) 12 end 13 end 19
started using options: "--seed 52712" Running suite to find failures... (0.25752 seconds) Starting bisect with 1 failing example and 5 non-failing examples. Checking that failure(s) are order-dependent... failure appears to be order-dependent Round 1: bisecting over non-failing examples 1-5 .. ignoring examples 4-5 (0.44252 seconds) Round 2: bisecting over non-failing examples 1-3 . ignoring examples 1-2 (0.22256 seconds) Bisect complete! Reduced necessary non-failing examples from 5 to 1 in 0.88248 seconds. The minimal reproduction command is: rspec './spec/calculator_10_spec.rb[1:1]' './spec/calculator_1_spec.rb[1:1]' --seed 52712 22
around 5pm yesterday. Sat down at my computer this morning and it was still going.” @geeksam “@myronmarston @urbanautomaton Thanks! Running against HEAD, bisect completed in ~20min. Minimal repro consists of 23 examples (1 failing).” @geeksam 25
} 5 6 it "returns a 200 response" do 7 expect(response.status).to eq(200) 8 end 9 10 it "indicates the response body is JSON" do 11 expect(response.headers).to include("Content-Type" => "application/json") 12 end 13 14 it "returns a success message" do 15 expect(response.body).to eq('{"message":"Success"}') 16 end 17 end 28