Skip to content

Commit 9f2ff66

Browse files
committed
revert json spec
1 parent 189328e commit 9f2ff66

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

‎spec/unit/rack/formatters/json_spec.rb‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,7 @@
3030
@app.should_receive(:call).and_return([200, {'Content-Type' => 'application/json'}, {:a => 1, :b => 2}])
3131

3232
status, header, body = @js.call({})
33-
b = ''
34-
b = body.collect { |item| item }.join('')
35-
36-
lambda { JSON.parse(b)['a'].should == 1 }.should_not raise_error Exception
33+
lambda { JSON.parse(body)['a'].should == 1 }.should_not raise_error Exception
3734
end
3835

3936
it "doesn't format to json if the type is not application/json" do

0 commit comments

Comments
 (0)