Added tasks controller, spec, JS, apitesthelper

Had an issue with calling render_views in the specs to render the
jbuilder json templates and also getting the devise sign_in method to
work, ended up adding a helper to add the username/password for a user
This commit is contained in:
Jason Denney
2014-03-09 22:30:41 -04:00
parent 3b904f95f2
commit e2f442889e
10 changed files with 218 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
module ApiTestHelpers
def api_submit_json(user, json_hash)
json_hash.merge({username: user.email, password: user.password})
end
end