Created
November 25, 2016 14:40
-
-
Save AJFaraday/cd26452278bfbf79fa3ccaf15df541ca to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe EekController do | |
it 'should return some json' do | |
get :info | |
response.should eq(Eek.info.to_json) # This will hang rspec | |
end | |
it 'should not hang like this' do | |
get :info | |
response.body.should eq(Eek.info.to_json) # This will run fine, maybe pass. maybe fail. | |
# ^^^^^^ | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment