spec/support/helpers.rb in rack-api-0.1.1 vs spec/support/helpers.rb in rack-api-0.1.2

- old
+ new

@@ -4,6 +4,10 @@ end def basic_auth(username, password) "Basic " + Base64.encode64("#{username}:#{password}") end + + def json(string) + JSON.load(string) + end end