mirror of
https://github.com/fspc/BikeShed-1.git
synced 2026-09-16 08:31:36 -04:00
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:
@@ -0,0 +1,5 @@
|
||||
module ApiTestHelpers
|
||||
def api_submit_json(user, json_hash)
|
||||
json_hash.merge({username: user.email, password: user.password})
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user