Commit d683ce5c10ee84d9fde153329d08425c7e99941f
1 parent
fa3ae24c
Exists in
master
and in
4 other branches
refactored factory + fixed tests
Showing
3 changed files
with
8 additions
and
21 deletions
Show diff stats
spec/factories.rb
spec/factories/groups.rb
| ... | ... | @@ -1,21 +0,0 @@ |
| 1 | -# == Schema Information | |
| 2 | -# | |
| 3 | -# Table name: groups | |
| 4 | -# | |
| 5 | -# id :integer not null, primary key | |
| 6 | -# name :string(255) not null | |
| 7 | -# code :string(255) not null | |
| 8 | -# owner_id :integer not null | |
| 9 | -# created_at :datetime not null | |
| 10 | -# updated_at :datetime not null | |
| 11 | -# | |
| 12 | - | |
| 13 | -# Read about factories at https://github.com/thoughtbot/factory_girl | |
| 14 | - | |
| 15 | -FactoryGirl.define do | |
| 16 | - factory :group do | |
| 17 | - name "MyString" | |
| 18 | - code "MyString" | |
| 19 | - owner_id 1 | |
| 20 | - end | |
| 21 | -end |
spec/models/group_spec.rb