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
+7
View File
@@ -0,0 +1,7 @@
FactoryGirl.define do
factory :task do
task_list { FactoryGirl.create(:task_list) }
done false
task { Faker::Lorem.words(7).join(" ")}
end
end
+4
View File
@@ -36,5 +36,9 @@ FactoryGirl.define do
end
end
factory :user_with_bike do
bike { FactoryGirl.create(:bike) }
end
end
end