We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57954a7 commit f182aa9Copy full SHA for f182aa9
spec/grape/api_spec.rb
@@ -107,8 +107,9 @@ def app; subject end
107
end
108
109
it 'should add the association to the :representations setting' do
110
- subject.represent Object, :with => BasicObject
111
- subject.settings[:representations][Object].should == BasicObject
+ klass = Class.new
+ subject.represent Object, :with => klass
112
+ subject.settings[:representations][Object].should == klass
113
114
115
@@ -597,7 +598,7 @@ def two
597
598
raise "rain!"
599
600
get '/exception'
- json = JSON.parse(last_response.body)
601
+ json = MultiJson.decode(last_response.body)
602
json["error"].should eql 'rain!'
603
json["backtrace"].length.should > 0
604
0 commit comments