Commit ca9b4c1d68a0b1fdd5e7865f6354a78ae9c9b342

Authored by Rafael Manzo
1 parent c8b2ada5

User is associated to RepositoryAttributes

Showing 2 changed files with 2 additions and 0 deletions   Show diff stats
app/models/user.rb
@@ -10,6 +10,7 @@ class User < ActiveRecord::Base @@ -10,6 +10,7 @@ class User < ActiveRecord::Base
10 10
11 has_many :project_attributes, class_name: 'ProjectAttributes' 11 has_many :project_attributes, class_name: 'ProjectAttributes'
12 has_many :reading_group_attributes, class_name: 'ReadingGroupAttributes' 12 has_many :reading_group_attributes, class_name: 'ReadingGroupAttributes'
  13 + has_many :repository_attributes, class_name: 'RepositoryAttributes'
13 has_many :kalibro_configuration_attributes, class_name: 'KalibroConfigurationAttributes' 14 has_many :kalibro_configuration_attributes, class_name: 'KalibroConfigurationAttributes'
14 # Alert: when adding new parameters to this model, they should also be added to registrations_controller 15 # Alert: when adding new parameters to this model, they should also be added to registrations_controller
15 16
spec/models/user_spec.rb
@@ -13,6 +13,7 @@ describe User, :type => :model do @@ -13,6 +13,7 @@ describe User, :type => :model do
13 it { is_expected.to have_many(:project_attributes) } 13 it { is_expected.to have_many(:project_attributes) }
14 it { is_expected.to have_many(:reading_group_attributes) } 14 it { is_expected.to have_many(:reading_group_attributes) }
15 it { is_expected.to have_many(:kalibro_configuration_attributes) } 15 it { is_expected.to have_many(:kalibro_configuration_attributes) }
  16 + it { is_expected.to have_many(:repository_attributes) }
16 end 17 end
17 18
18 describe 'methods' do 19 describe 'methods' do