tests: add favorite groups controller tests.

This commit is contained in:
evazion
2017-02-05 01:32:09 -06:00
parent ed451b7199
commit 64b4004bbf
4 changed files with 87 additions and 3 deletions

View File

@@ -1,4 +1,6 @@
FactoryGirl.define do
factory(:favorite_group) do
factory :favorite_group do
name { FFaker::Lorem.word }
creator
end
end

View File

@@ -1,5 +1,5 @@
FactoryGirl.define do
factory(:user) do
factory(:user, aliases: [:creator, :updater]) do
name {(rand(1_000_000) + 10).to_s}
password "password"
password_hash {User.sha1("password")}