enju_subject 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3f0d898b7b391adbdfeab69c85b904725a0e81c9
4
- data.tar.gz: 9665b462af244f3236c39853e5a65ba82ad3b61e
3
+ metadata.gz: 0f5eed054b9d32b37e8f53d27d63748dbcf3c361
4
+ data.tar.gz: 6909661f3f8151b8e0518faca0299a07d43105ae
5
5
  SHA512:
6
- metadata.gz: ddc57d234a076134dd20654357c131ffa7e2576875871154699d724610bea96095ab62f1bf2ad04288261bb841f4213eb7a76edd9caa01b6332dcc5c70479cfd
7
- data.tar.gz: 933f093663e4e973b7b1cff31027945cfe13af92a50c1fd13d81d73ee8e7bbedfa607ce224a5b07dc535c3daceeac37f8a8daef19393d11385dc6a4ff769501c
6
+ metadata.gz: 4ac7658a6fb976945d1fcf2d1ae3eac44d4c2981e6d0e9a160eeb92a2fc95c1f753023543f0df90a20b74bfb606d38d1be48049a6e3fd05c388d72a4f18d4399
7
+ data.tar.gz: 72160d8830e588973ef34c5bcc58814931d57ec51cba9d06bed7f4705429243a6d8fd42c7116e4ac9aa740a2f159933897a07888756847e6ad198c866e502d66
@@ -1,3 +1,3 @@
1
1
  module EnjuSubject
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
@@ -6,12 +6,12 @@ describe ClassificationTypesController do
6
6
  disconnect_sunspot
7
7
 
8
8
  def valid_attributes
9
- FactoryGirl.attributes_for(:classification_type)
9
+ FactoryBot.attributes_for(:classification_type)
10
10
  end
11
11
 
12
12
  describe 'GET index' do
13
13
  before(:each) do
14
- FactoryGirl.create(:classification_type)
14
+ FactoryBot.create(:classification_type)
15
15
  end
16
16
 
17
17
  describe 'When logged in as Administrator' do
@@ -54,7 +54,7 @@ describe ClassificationTypesController do
54
54
  login_admin
55
55
 
56
56
  it 'assigns the requested classification_type as @classification_type' do
57
- classification_type = FactoryGirl.create(:classification_type)
57
+ classification_type = FactoryBot.create(:classification_type)
58
58
  get :show, id: classification_type.id
59
59
  expect(assigns(:classification_type)).to eq(classification_type)
60
60
  end
@@ -64,7 +64,7 @@ describe ClassificationTypesController do
64
64
  login_librarian
65
65
 
66
66
  it 'assigns the requested classification_type as @classification_type' do
67
- classification_type = FactoryGirl.create(:classification_type)
67
+ classification_type = FactoryBot.create(:classification_type)
68
68
  get :show, id: classification_type.id
69
69
  expect(assigns(:classification_type)).to eq(classification_type)
70
70
  end
@@ -74,7 +74,7 @@ describe ClassificationTypesController do
74
74
  login_user
75
75
 
76
76
  it 'assigns the requested classification_type as @classification_type' do
77
- classification_type = FactoryGirl.create(:classification_type)
77
+ classification_type = FactoryBot.create(:classification_type)
78
78
  get :show, id: classification_type.id
79
79
  expect(assigns(:classification_type)).to eq(classification_type)
80
80
  end
@@ -82,7 +82,7 @@ describe ClassificationTypesController do
82
82
 
83
83
  describe 'When not logged in' do
84
84
  it 'assigns the requested classification_type as @classification_type' do
85
- classification_type = FactoryGirl.create(:classification_type)
85
+ classification_type = FactoryBot.create(:classification_type)
86
86
  get :show, id: classification_type.id
87
87
  expect(assigns(:classification_type)).to eq(classification_type)
88
88
  end
@@ -134,7 +134,7 @@ describe ClassificationTypesController do
134
134
  login_admin
135
135
 
136
136
  it 'assigns the requested classification_type as @classification_type' do
137
- classification_type = FactoryGirl.create(:classification_type)
137
+ classification_type = FactoryBot.create(:classification_type)
138
138
  get :edit, id: classification_type.id
139
139
  expect(assigns(:classification_type)).to eq(classification_type)
140
140
  end
@@ -144,7 +144,7 @@ describe ClassificationTypesController do
144
144
  login_librarian
145
145
 
146
146
  it 'assigns the requested classification_type as @classification_type' do
147
- classification_type = FactoryGirl.create(:classification_type)
147
+ classification_type = FactoryBot.create(:classification_type)
148
148
  get :edit, id: classification_type.id
149
149
  expect(response).to be_forbidden
150
150
  end
@@ -154,7 +154,7 @@ describe ClassificationTypesController do
154
154
  login_user
155
155
 
156
156
  it 'assigns the requested classification_type as @classification_type' do
157
- classification_type = FactoryGirl.create(:classification_type)
157
+ classification_type = FactoryBot.create(:classification_type)
158
158
  get :edit, id: classification_type.id
159
159
  expect(response).to be_forbidden
160
160
  end
@@ -162,7 +162,7 @@ describe ClassificationTypesController do
162
162
 
163
163
  describe 'When not logged in' do
164
164
  it 'should not assign the requested classification_type as @classification_type' do
165
- classification_type = FactoryGirl.create(:classification_type)
165
+ classification_type = FactoryBot.create(:classification_type)
166
166
  get :edit, id: classification_type.id
167
167
  expect(response).to redirect_to(new_user_session_url)
168
168
  end
@@ -288,7 +288,7 @@ describe ClassificationTypesController do
288
288
 
289
289
  describe 'PUT update' do
290
290
  before(:each) do
291
- @classification_type = FactoryGirl.create(:classification_type)
291
+ @classification_type = FactoryBot.create(:classification_type)
292
292
  @attrs = valid_attributes
293
293
  @invalid_attrs = { name: '' }
294
294
  end
@@ -389,7 +389,7 @@ describe ClassificationTypesController do
389
389
 
390
390
  describe 'DELETE destroy' do
391
391
  before(:each) do
392
- @classification_type = FactoryGirl.create(:classification_type)
392
+ @classification_type = FactoryBot.create(:classification_type)
393
393
  end
394
394
 
395
395
  describe 'When logged in as Administrator' do
@@ -4,7 +4,7 @@ describe ClassificationsController do
4
4
  fixtures :all
5
5
 
6
6
  def valid_attributes
7
- FactoryGirl.attributes_for(:classification)
7
+ FactoryBot.attributes_for(:classification)
8
8
  end
9
9
 
10
10
  describe 'GET index', solr: true do
@@ -55,7 +55,7 @@ describe ClassificationsController do
55
55
 
56
56
  describe 'GET show' do
57
57
  before(:each) do
58
- @classification = FactoryGirl.create(:classification)
58
+ @classification = FactoryBot.create(:classification)
59
59
  end
60
60
 
61
61
  describe 'When logged in as Administrator' do
@@ -135,7 +135,7 @@ describe ClassificationsController do
135
135
  login_admin
136
136
 
137
137
  it 'assigns the requested classification as @classification' do
138
- classification = FactoryGirl.create(:classification)
138
+ classification = FactoryBot.create(:classification)
139
139
  get :edit, id: classification.id
140
140
  expect(assigns(:classification)).to eq(classification)
141
141
  end
@@ -145,7 +145,7 @@ describe ClassificationsController do
145
145
  login_librarian
146
146
 
147
147
  it 'assigns the requested classification as @classification' do
148
- classification = FactoryGirl.create(:classification)
148
+ classification = FactoryBot.create(:classification)
149
149
  get :edit, id: classification.id
150
150
  expect(assigns(:classification)).to eq(classification)
151
151
  end
@@ -155,7 +155,7 @@ describe ClassificationsController do
155
155
  login_user
156
156
 
157
157
  it 'assigns the requested classification as @classification' do
158
- classification = FactoryGirl.create(:classification)
158
+ classification = FactoryBot.create(:classification)
159
159
  get :edit, id: classification.id
160
160
  response.should be_forbidden
161
161
  end
@@ -163,7 +163,7 @@ describe ClassificationsController do
163
163
 
164
164
  describe 'When not logged in' do
165
165
  it 'should not assign the requested classification as @classification' do
166
- classification = FactoryGirl.create(:classification)
166
+ classification = FactoryBot.create(:classification)
167
167
  get :edit, id: classification.id
168
168
  response.should redirect_to(new_user_session_url)
169
169
  end
@@ -289,7 +289,7 @@ describe ClassificationsController do
289
289
 
290
290
  describe 'PUT update' do
291
291
  before(:each) do
292
- @classification = FactoryGirl.create(:classification)
292
+ @classification = FactoryBot.create(:classification)
293
293
  @attrs = valid_attributes
294
294
  @invalid_attrs = { category: '' }
295
295
  end
@@ -385,7 +385,7 @@ describe ClassificationsController do
385
385
 
386
386
  describe 'DELETE destroy' do
387
387
  before(:each) do
388
- @classification = FactoryGirl.create(:classification)
388
+ @classification = FactoryBot.create(:classification)
389
389
  end
390
390
 
391
391
  describe 'When logged in as Administrator' do
@@ -6,12 +6,12 @@ describe SubjectHeadingTypesController do
6
6
  disconnect_sunspot
7
7
 
8
8
  def valid_attributes
9
- FactoryGirl.attributes_for(:subject_heading_type)
9
+ FactoryBot.attributes_for(:subject_heading_type)
10
10
  end
11
11
 
12
12
  describe 'GET index' do
13
13
  before(:each) do
14
- FactoryGirl.create(:subject_heading_type)
14
+ FactoryBot.create(:subject_heading_type)
15
15
  end
16
16
 
17
17
  describe 'When logged in as Administrator' do
@@ -54,7 +54,7 @@ describe SubjectHeadingTypesController do
54
54
  login_admin
55
55
 
56
56
  it 'assigns the requested subject_heading_type as @subject_heading_type' do
57
- subject_heading_type = FactoryGirl.create(:subject_heading_type)
57
+ subject_heading_type = FactoryBot.create(:subject_heading_type)
58
58
  get :show, id: subject_heading_type.id
59
59
  expect(assigns(:subject_heading_type)).to eq(subject_heading_type)
60
60
  end
@@ -64,7 +64,7 @@ describe SubjectHeadingTypesController do
64
64
  login_librarian
65
65
 
66
66
  it 'assigns the requested subject_heading_type as @subject_heading_type' do
67
- subject_heading_type = FactoryGirl.create(:subject_heading_type)
67
+ subject_heading_type = FactoryBot.create(:subject_heading_type)
68
68
  get :show, id: subject_heading_type.id
69
69
  expect(assigns(:subject_heading_type)).to eq(subject_heading_type)
70
70
  end
@@ -74,7 +74,7 @@ describe SubjectHeadingTypesController do
74
74
  login_user
75
75
 
76
76
  it 'assigns the requested subject_heading_type as @subject_heading_type' do
77
- subject_heading_type = FactoryGirl.create(:subject_heading_type)
77
+ subject_heading_type = FactoryBot.create(:subject_heading_type)
78
78
  get :show, id: subject_heading_type.id
79
79
  expect(assigns(:subject_heading_type)).to eq(subject_heading_type)
80
80
  end
@@ -82,7 +82,7 @@ describe SubjectHeadingTypesController do
82
82
 
83
83
  describe 'When not logged in' do
84
84
  it 'assigns the requested subject_heading_type as @subject_heading_type' do
85
- subject_heading_type = FactoryGirl.create(:subject_heading_type)
85
+ subject_heading_type = FactoryBot.create(:subject_heading_type)
86
86
  get :show, id: subject_heading_type.id
87
87
  expect(assigns(:subject_heading_type)).to eq(subject_heading_type)
88
88
  end
@@ -134,7 +134,7 @@ describe SubjectHeadingTypesController do
134
134
  login_admin
135
135
 
136
136
  it 'assigns the requested subject_heading_type as @subject_heading_type' do
137
- subject_heading_type = FactoryGirl.create(:subject_heading_type)
137
+ subject_heading_type = FactoryBot.create(:subject_heading_type)
138
138
  get :edit, id: subject_heading_type.id
139
139
  expect(assigns(:subject_heading_type)).to eq(subject_heading_type)
140
140
  end
@@ -144,7 +144,7 @@ describe SubjectHeadingTypesController do
144
144
  login_librarian
145
145
 
146
146
  it 'assigns the requested subject_heading_type as @subject_heading_type' do
147
- subject_heading_type = FactoryGirl.create(:subject_heading_type)
147
+ subject_heading_type = FactoryBot.create(:subject_heading_type)
148
148
  get :edit, id: subject_heading_type.id
149
149
  response.should be_forbidden
150
150
  end
@@ -154,7 +154,7 @@ describe SubjectHeadingTypesController do
154
154
  login_user
155
155
 
156
156
  it 'assigns the requested subject_heading_type as @subject_heading_type' do
157
- subject_heading_type = FactoryGirl.create(:subject_heading_type)
157
+ subject_heading_type = FactoryBot.create(:subject_heading_type)
158
158
  get :edit, id: subject_heading_type.id
159
159
  response.should be_forbidden
160
160
  end
@@ -162,7 +162,7 @@ describe SubjectHeadingTypesController do
162
162
 
163
163
  describe 'When not logged in' do
164
164
  it 'should not assign the requested subject_heading_type as @subject_heading_type' do
165
- subject_heading_type = FactoryGirl.create(:subject_heading_type)
165
+ subject_heading_type = FactoryBot.create(:subject_heading_type)
166
166
  get :edit, id: subject_heading_type.id
167
167
  response.should redirect_to(new_user_session_url)
168
168
  end
@@ -288,7 +288,7 @@ describe SubjectHeadingTypesController do
288
288
 
289
289
  describe 'PUT update' do
290
290
  before(:each) do
291
- @subject_heading_type = FactoryGirl.create(:subject_heading_type)
291
+ @subject_heading_type = FactoryBot.create(:subject_heading_type)
292
292
  @attrs = valid_attributes
293
293
  @invalid_attrs = { name: '' }
294
294
  end
@@ -389,7 +389,7 @@ describe SubjectHeadingTypesController do
389
389
 
390
390
  describe 'DELETE destroy' do
391
391
  before(:each) do
392
- @subject_heading_type = FactoryGirl.create(:subject_heading_type)
392
+ @subject_heading_type = FactoryBot.create(:subject_heading_type)
393
393
  end
394
394
 
395
395
  describe 'When logged in as Administrator' do
@@ -6,12 +6,12 @@ describe SubjectTypesController do
6
6
  disconnect_sunspot
7
7
 
8
8
  def valid_attributes
9
- FactoryGirl.attributes_for(:subject_type)
9
+ FactoryBot.attributes_for(:subject_type)
10
10
  end
11
11
 
12
12
  describe 'GET index' do
13
13
  before(:each) do
14
- FactoryGirl.create(:subject_type)
14
+ FactoryBot.create(:subject_type)
15
15
  end
16
16
 
17
17
  describe 'When logged in as Administrator' do
@@ -56,7 +56,7 @@ describe SubjectTypesController do
56
56
  login_admin
57
57
 
58
58
  it 'assigns the requested subject_type as @subject_type' do
59
- subject_type = FactoryGirl.create(:subject_type)
59
+ subject_type = FactoryBot.create(:subject_type)
60
60
  get :show, id: subject_type.id
61
61
  expect(assigns(:subject_type)).to eq(subject_type)
62
62
  end
@@ -66,7 +66,7 @@ describe SubjectTypesController do
66
66
  login_librarian
67
67
 
68
68
  it 'assigns the requested subject_type as @subject_type' do
69
- subject_type = FactoryGirl.create(:subject_type)
69
+ subject_type = FactoryBot.create(:subject_type)
70
70
  get :show, id: subject_type.id
71
71
  expect(assigns(:subject_type)).to eq(subject_type)
72
72
  end
@@ -76,7 +76,7 @@ describe SubjectTypesController do
76
76
  login_user
77
77
 
78
78
  it 'assigns the requested subject_type as @subject_type' do
79
- subject_type = FactoryGirl.create(:subject_type)
79
+ subject_type = FactoryBot.create(:subject_type)
80
80
  get :show, id: subject_type.id
81
81
  expect(assigns(:subject_type)).to eq(subject_type)
82
82
  end
@@ -84,7 +84,7 @@ describe SubjectTypesController do
84
84
 
85
85
  describe 'When not logged in' do
86
86
  it 'assigns the requested subject_type as @subject_type' do
87
- subject_type = FactoryGirl.create(:subject_type)
87
+ subject_type = FactoryBot.create(:subject_type)
88
88
  get :show, id: subject_type.id
89
89
  expect(assigns(:subject_type)).to eq(subject_type)
90
90
  end
@@ -136,7 +136,7 @@ describe SubjectTypesController do
136
136
  login_admin
137
137
 
138
138
  it 'assigns the requested subject_type as @subject_type' do
139
- subject_type = FactoryGirl.create(:subject_type)
139
+ subject_type = FactoryBot.create(:subject_type)
140
140
  get :edit, id: subject_type.id
141
141
  expect(assigns(:subject_type)).to eq(subject_type)
142
142
  end
@@ -146,7 +146,7 @@ describe SubjectTypesController do
146
146
  login_librarian
147
147
 
148
148
  it 'assigns the requested subject_type as @subject_type' do
149
- subject_type = FactoryGirl.create(:subject_type)
149
+ subject_type = FactoryBot.create(:subject_type)
150
150
  get :edit, id: subject_type.id
151
151
  response.should be_forbidden
152
152
  end
@@ -156,7 +156,7 @@ describe SubjectTypesController do
156
156
  login_user
157
157
 
158
158
  it 'assigns the requested subject_type as @subject_type' do
159
- subject_type = FactoryGirl.create(:subject_type)
159
+ subject_type = FactoryBot.create(:subject_type)
160
160
  get :edit, id: subject_type.id
161
161
  response.should be_forbidden
162
162
  end
@@ -164,7 +164,7 @@ describe SubjectTypesController do
164
164
 
165
165
  describe 'When not logged in' do
166
166
  it 'should not assign the requested subject_type as @subject_type' do
167
- subject_type = FactoryGirl.create(:subject_type)
167
+ subject_type = FactoryBot.create(:subject_type)
168
168
  get :edit, id: subject_type.id
169
169
  response.should redirect_to(new_user_session_url)
170
170
  end
@@ -290,7 +290,7 @@ describe SubjectTypesController do
290
290
 
291
291
  describe 'PUT update' do
292
292
  before(:each) do
293
- @subject_type = FactoryGirl.create(:subject_type)
293
+ @subject_type = FactoryBot.create(:subject_type)
294
294
  @attrs = valid_attributes
295
295
  @invalid_attrs = { name: '' }
296
296
  end
@@ -391,7 +391,7 @@ describe SubjectTypesController do
391
391
 
392
392
  describe 'DELETE destroy' do
393
393
  before(:each) do
394
- @subject_type = FactoryGirl.create(:subject_type)
394
+ @subject_type = FactoryBot.create(:subject_type)
395
395
  end
396
396
 
397
397
  describe 'When logged in as Administrator' do
@@ -4,7 +4,7 @@ describe SubjectsController do
4
4
  fixtures :all
5
5
 
6
6
  def valid_attributes
7
- FactoryGirl.attributes_for(:subject)
7
+ FactoryBot.attributes_for(:subject)
8
8
  end
9
9
 
10
10
  describe 'GET index', solr: true do
@@ -53,7 +53,7 @@ describe SubjectsController do
53
53
  login_admin
54
54
 
55
55
  it 'assigns the requested subject as @subject' do
56
- subject = FactoryGirl.create(:subject)
56
+ subject = FactoryBot.create(:subject)
57
57
  get :show, id: subject.id
58
58
  expect(assigns(:subject)).to eq(subject)
59
59
  end
@@ -63,7 +63,7 @@ describe SubjectsController do
63
63
  login_librarian
64
64
 
65
65
  it 'assigns the requested subject as @subject' do
66
- subject = FactoryGirl.create(:subject)
66
+ subject = FactoryBot.create(:subject)
67
67
  get :show, id: subject.id
68
68
  expect(assigns(:subject)).to eq(subject)
69
69
  end
@@ -73,7 +73,7 @@ describe SubjectsController do
73
73
  login_user
74
74
 
75
75
  it 'assigns the requested subject as @subject' do
76
- subject = FactoryGirl.create(:subject)
76
+ subject = FactoryBot.create(:subject)
77
77
  get :show, id: subject.id
78
78
  expect(assigns(:subject)).to eq(subject)
79
79
  end
@@ -81,7 +81,7 @@ describe SubjectsController do
81
81
 
82
82
  describe 'When not logged in' do
83
83
  it 'assigns the requested subject as @subject' do
84
- subject = FactoryGirl.create(:subject)
84
+ subject = FactoryBot.create(:subject)
85
85
  get :show, id: subject.id
86
86
  expect(assigns(:subject)).to eq(subject)
87
87
  end
@@ -131,7 +131,7 @@ describe SubjectsController do
131
131
  login_admin
132
132
 
133
133
  it 'assigns the requested subject as @subject' do
134
- subject = FactoryGirl.create(:subject)
134
+ subject = FactoryBot.create(:subject)
135
135
  get :edit, id: subject.id
136
136
  expect(assigns(:subject)).to eq(subject)
137
137
  end
@@ -141,7 +141,7 @@ describe SubjectsController do
141
141
  login_librarian
142
142
 
143
143
  it 'assigns the requested subject as @subject' do
144
- subject = FactoryGirl.create(:subject)
144
+ subject = FactoryBot.create(:subject)
145
145
  get :edit, id: subject.id
146
146
  expect(assigns(:subject)).to eq(subject)
147
147
  end
@@ -151,7 +151,7 @@ describe SubjectsController do
151
151
  login_user
152
152
 
153
153
  it 'assigns the requested subject as @subject' do
154
- subject = FactoryGirl.create(:subject)
154
+ subject = FactoryBot.create(:subject)
155
155
  get :edit, id: subject.id
156
156
  response.should be_forbidden
157
157
  end
@@ -159,7 +159,7 @@ describe SubjectsController do
159
159
 
160
160
  describe 'When not logged in' do
161
161
  it 'should not assign the requested subject as @subject' do
162
- subject = FactoryGirl.create(:subject)
162
+ subject = FactoryBot.create(:subject)
163
163
  get :edit, id: subject.id
164
164
  response.should redirect_to(new_user_session_url)
165
165
  end
@@ -285,7 +285,7 @@ describe SubjectsController do
285
285
 
286
286
  describe 'PUT update' do
287
287
  before(:each) do
288
- @subject = FactoryGirl.create(:subject)
288
+ @subject = FactoryBot.create(:subject)
289
289
  @attrs = valid_attributes
290
290
  @invalid_attrs = { term: '' }
291
291
  end
@@ -381,7 +381,7 @@ describe SubjectsController do
381
381
 
382
382
  describe 'DELETE destroy' do
383
383
  before(:each) do
384
- @subject = FactoryGirl.create(:subject)
384
+ @subject = FactoryBot.create(:subject)
385
385
  end
386
386
 
387
387
  describe 'When logged in as Administrator' do
@@ -1,6 +1,6 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :classification do |f|
3
3
  f.sequence(:category){|n| "classification_#{n}"}
4
- f.classification_type_id{FactoryGirl.create(:classification_type).id}
4
+ f.classification_type_id{FactoryBot.create(:classification_type).id}
5
5
  end
6
6
  end
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :classification_type do |f|
3
3
  f.sequence(:name){|n| "classification_type_#{n}"}
4
4
  end
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :manifestation do |f|
3
3
  f.sequence(:original_title){|n| "manifestation_title_#{n}"}
4
4
  f.carrier_type_id{CarrierType.find(1).id}
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :profile, :class => Profile do |f|
3
3
  f.user_group_id {UserGroup.first.id}
4
4
  f.required_role_id {Role.where(name: 'User').first.id}
@@ -1,7 +1,7 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :subject do |f|
3
3
  f.sequence(:term){|n| "subject_#{n}"}
4
- f.subject_heading_type_id{FactoryGirl.create(:subject_heading_type).id}
5
- f.subject_type_id{FactoryGirl.create(:subject_type).id}
4
+ f.subject_heading_type_id{FactoryBot.create(:subject_heading_type).id}
5
+ f.subject_type_id{FactoryBot.create(:subject_type).id}
6
6
  end
7
7
  end
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :subject_heading_type do |f|
3
3
  f.sequence(:name){|n| "subject_heading_type_#{n}"}
4
4
  end
@@ -1,6 +1,6 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :subject_heading_type_has_subject do |f|
3
- f.subject_heading_type_id{FactoryGirl.create(:subject_heading_type).id}
4
- f.subject_id{FactoryGirl.create(:subject).id}
3
+ f.subject_heading_type_id{FactoryBot.create(:subject_heading_type).id}
4
+ f.subject_id{FactoryBot.create(:subject).id}
5
5
  end
6
6
  end
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :subject_type do |f|
3
3
  f.sequence(:name){|n| "subject_type_#{n}"}
4
4
  end
@@ -1,4 +1,4 @@
1
- FactoryGirl.define do
1
+ FactoryBot.define do
2
2
  factory :admin, :class => User do |f|
3
3
  f.sequence(:username){|n| "admin_#{n}"}
4
4
  f.sequence(:email){|n| "admin_#{n}@example.jp"}
@@ -7,7 +7,7 @@ Coveralls.wear!
7
7
  ENV["RAILS_ENV"] ||= 'test'
8
8
  require File.expand_path("../dummy/config/environment", __FILE__)
9
9
  require 'rspec/rails'
10
- require 'factory_girl'
10
+ require 'factory_bot'
11
11
  require 'sunspot-rails-tester'
12
12
 
13
13
  # Requires supporting ruby files with custom matchers and macros, etc,
@@ -49,5 +49,5 @@ RSpec.configure do |config|
49
49
  config.infer_spec_type_from_file_location!
50
50
  end
51
51
 
52
- FactoryGirl.definition_file_paths << "#{::Rails.root}/../../spec/factories"
53
- FactoryGirl.find_definitions
52
+ FactoryBot.definition_file_paths << "#{::Rails.root}/../../spec/factories"
53
+ FactoryBot.find_definitions
@@ -2,14 +2,14 @@ module ControllerMacros
2
2
  def login_admin
3
3
  before(:each) do
4
4
  @request.env["devise.mapping"] = Devise.mappings[:admin]
5
- sign_in FactoryGirl.create(:admin)
5
+ sign_in FactoryBot.create(:admin)
6
6
  end
7
7
  end
8
8
 
9
9
  def login_librarian
10
10
  before(:each) do
11
11
  @request.env["devise.mapping"] = Devise.mappings[:user]
12
- user = FactoryGirl.create(:librarian)
12
+ user = FactoryBot.create(:librarian)
13
13
  sign_in user
14
14
  end
15
15
  end
@@ -17,7 +17,7 @@ module ControllerMacros
17
17
  def login_user
18
18
  before(:each) do
19
19
  @request.env["devise.mapping"] = Devise.mappings[:user]
20
- user = FactoryGirl.create(:user)
20
+ user = FactoryBot.create(:user)
21
21
  sign_in user
22
22
  end
23
23
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enju_subject
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kosuke Tanabe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-12 00:00:00.000000000 Z
11
+ date: 2018-01-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: enju_biblio
@@ -109,7 +109,7 @@ dependencies:
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
- name: factory_girl_rails
112
+ name: factory_bot_rails
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - ">="
@@ -521,7 +521,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
521
521
  version: '0'
522
522
  requirements: []
523
523
  rubyforge_project:
524
- rubygems_version: 2.5.2.1
524
+ rubygems_version: 2.6.14
525
525
  signing_key:
526
526
  specification_version: 4
527
527
  summary: enju_subject plugin