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,7 @@
|
||||
FactoryGirl.define do
|
||||
factory :task do
|
||||
task_list { FactoryGirl.create(:task_list) }
|
||||
done false
|
||||
task { Faker::Lorem.words(7).join(" ")}
|
||||
end
|
||||
end
|
||||
@@ -36,5 +36,9 @@ FactoryGirl.define do
|
||||
end
|
||||
end
|
||||
|
||||
factory :user_with_bike do
|
||||
bike { FactoryGirl.create(:bike) }
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user