Something went wrong

69 views
Skip to first unread message

Oleg

unread,
Oct 20, 2011, 10:49:18 AM10/20/11
to Cramp Framework
While trying to test my app I ran into this issue. This is my test:

get '/something' do |status, headers, body|
raise [status, headers, body].to_yaml
end

So while I was expecting something from my app I get "Something went
wrong" and 500 status. What is very unhelpful is that there's nothing
showing in the log. On the flip side `get_body` test works just as
expected.

Any idea what might be going on? and perhaps how can I see what
exactly "went wrong"?

Oleg

unread,
Oct 20, 2011, 1:23:37 PM10/20/11
to Cramp Framework
I kinda figured it out `assert_kind_of` assertion was actually
changing the response because I didn't send proper parameters. I made
a pull request to enable logging in test environment.
Reply all
Reply to author
Forward
0 new messages