model_base_generators 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/example/app/helpers/project_assignments_helper.rb +3 -0
- data/example/spec/helpers/issues_helper_spec.rb +15 -0
- data/example/spec/helpers/phases_helper_spec.rb +15 -0
- data/example/spec/helpers/project_assignments_helper_spec.rb +15 -0
- data/example/spec/helpers/projects_helper_spec.rb +15 -0
- data/example/spec/requests/issues_spec.rb +14 -0
- data/example/spec/requests/phases_spec.rb +14 -0
- data/example/spec/requests/project_assignments_spec.rb +14 -0
- data/example/spec/requests/projects_spec.rb +14 -0
- data/lib/model_base/version.rb +1 -1
- data/lib/templates/helper.rb +7 -0
- data/lib/templates/rspec/integration/request_spec.rb +4 -4
- metadata +11 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae30edbd2a2bc107cd3a22392d0e66515b2c1e3b
|
4
|
+
data.tar.gz: 9137980da4d7bd30aa9d5a00f3e4a6adb1cf9617
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b6c64781f024d3db0b756cc4c4e6f2decc6b0393a7f62671192abec170f173dbb5d80eaa69befed5df8984190dfac5bc1bd3f2b0188ff2a0b7757e504dc719a
|
7
|
+
data.tar.gz: e58d783b77c59932b41bb1fefcb4fd5206ea746ee870cff52e863b7216ade00aeadfc6baf3828e20d7778ecd9f1dc93126f15373f68929fa38ffc21a102aa565
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
require 'rails_helper'
|
3
|
+
|
4
|
+
# Specs in this file have access to a helper object that includes
|
5
|
+
# the IssuesHelper. For example:
|
6
|
+
#
|
7
|
+
# describe IssuesHelper do
|
8
|
+
# describe "string concat" do
|
9
|
+
# it "concats two strings with spaces" do
|
10
|
+
# expect(helper.concat_strings("this","that")).to eq("this that")
|
11
|
+
# end
|
12
|
+
# end
|
13
|
+
# end
|
14
|
+
RSpec.describe IssuesHelper, type: :helper do
|
15
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
require 'rails_helper'
|
3
|
+
|
4
|
+
# Specs in this file have access to a helper object that includes
|
5
|
+
# the PhasesHelper. For example:
|
6
|
+
#
|
7
|
+
# describe PhasesHelper do
|
8
|
+
# describe "string concat" do
|
9
|
+
# it "concats two strings with spaces" do
|
10
|
+
# expect(helper.concat_strings("this","that")).to eq("this that")
|
11
|
+
# end
|
12
|
+
# end
|
13
|
+
# end
|
14
|
+
RSpec.describe PhasesHelper, type: :helper do
|
15
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
require 'rails_helper'
|
3
|
+
|
4
|
+
# Specs in this file have access to a helper object that includes
|
5
|
+
# the ProjectAssignmentsHelper. For example:
|
6
|
+
#
|
7
|
+
# describe ProjectAssignmentsHelper do
|
8
|
+
# describe "string concat" do
|
9
|
+
# it "concats two strings with spaces" do
|
10
|
+
# expect(helper.concat_strings("this","that")).to eq("this that")
|
11
|
+
# end
|
12
|
+
# end
|
13
|
+
# end
|
14
|
+
RSpec.describe ProjectAssignmentsHelper, type: :helper do
|
15
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
require 'rails_helper'
|
3
|
+
|
4
|
+
# Specs in this file have access to a helper object that includes
|
5
|
+
# the ProjectsHelper. For example:
|
6
|
+
#
|
7
|
+
# describe ProjectsHelper do
|
8
|
+
# describe "string concat" do
|
9
|
+
# it "concats two strings with spaces" do
|
10
|
+
# expect(helper.concat_strings("this","that")).to eq("this that")
|
11
|
+
# end
|
12
|
+
# end
|
13
|
+
# end
|
14
|
+
RSpec.describe ProjectsHelper, type: :helper do
|
15
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
require 'rails_helper'
|
3
|
+
|
4
|
+
RSpec.describe 'Issues', type: :request do
|
5
|
+
let(:user) { FactoryGirl.create(:user) }
|
6
|
+
before { login_as(user, scope: :user) }
|
7
|
+
|
8
|
+
describe 'GET /issues' do
|
9
|
+
it 'works! (now write some real specs)' do
|
10
|
+
get issues_path
|
11
|
+
expect(response).to have_http_status(200)
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
require 'rails_helper'
|
3
|
+
|
4
|
+
RSpec.describe 'Phases', type: :request do
|
5
|
+
let(:user) { FactoryGirl.create(:user) }
|
6
|
+
before { login_as(user, scope: :user) }
|
7
|
+
|
8
|
+
describe 'GET /phases' do
|
9
|
+
it 'works! (now write some real specs)' do
|
10
|
+
get phases_path
|
11
|
+
expect(response).to have_http_status(200)
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
require 'rails_helper'
|
3
|
+
|
4
|
+
RSpec.describe 'ProjectAssignments', type: :request do
|
5
|
+
let(:user) { FactoryGirl.create(:user) }
|
6
|
+
before { login_as(user, scope: :user) }
|
7
|
+
|
8
|
+
describe 'GET /project_assignments' do
|
9
|
+
it 'works! (now write some real specs)' do
|
10
|
+
get project_assignments_path
|
11
|
+
expect(response).to have_http_status(200)
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
require 'rails_helper'
|
3
|
+
|
4
|
+
RSpec.describe 'Projects', type: :request do
|
5
|
+
let(:user) { FactoryGirl.create(:user) }
|
6
|
+
before { login_as(user, scope: :user) }
|
7
|
+
|
8
|
+
describe 'GET /projects' do
|
9
|
+
it 'works! (now write some real specs)' do
|
10
|
+
get projects_path
|
11
|
+
expect(response).to have_http_status(200)
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
data/lib/model_base/version.rb
CHANGED
@@ -3,12 +3,12 @@
|
|
3
3
|
<%- end -%>
|
4
4
|
require 'rails_helper'
|
5
5
|
|
6
|
-
RSpec.describe
|
6
|
+
RSpec.describe '<%= class_name.pluralize %>', <%= type_metatag(:request) %> do
|
7
7
|
let(:user) { FactoryGirl.create(:user) }
|
8
|
-
before{ login_as(user, :
|
8
|
+
before { login_as(user, scope: :user) }
|
9
9
|
|
10
|
-
describe
|
11
|
-
it
|
10
|
+
describe 'GET /<%= table_name %>' do
|
11
|
+
it 'works! (now write some real specs)' do
|
12
12
|
get <%= index_helper %>_path
|
13
13
|
expect(response).to have_http_status(200)
|
14
14
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: model_base_generators
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- akm
|
@@ -153,6 +153,7 @@ files:
|
|
153
153
|
- example/app/helpers/issue_comments_helper.rb
|
154
154
|
- example/app/helpers/issues_helper.rb
|
155
155
|
- example/app/helpers/phases_helper.rb
|
156
|
+
- example/app/helpers/project_assignments_helper.rb
|
156
157
|
- example/app/helpers/projects_helper.rb
|
157
158
|
- example/app/jobs/application_job.rb
|
158
159
|
- example/app/mailers/application_mailer.rb
|
@@ -262,8 +263,16 @@ files:
|
|
262
263
|
- example/spec/factories/projects.rb
|
263
264
|
- example/spec/factories/users.rb
|
264
265
|
- example/spec/helpers/issue_comments_helper_spec.rb
|
266
|
+
- example/spec/helpers/issues_helper_spec.rb
|
267
|
+
- example/spec/helpers/phases_helper_spec.rb
|
268
|
+
- example/spec/helpers/project_assignments_helper_spec.rb
|
269
|
+
- example/spec/helpers/projects_helper_spec.rb
|
265
270
|
- example/spec/rails_helper.rb
|
266
271
|
- example/spec/requests/issue_comments_spec.rb
|
272
|
+
- example/spec/requests/issues_spec.rb
|
273
|
+
- example/spec/requests/phases_spec.rb
|
274
|
+
- example/spec/requests/project_assignments_spec.rb
|
275
|
+
- example/spec/requests/projects_spec.rb
|
267
276
|
- example/spec/routing/issue_comments_routing_spec.rb
|
268
277
|
- example/spec/routing/issues_routing_spec.rb
|
269
278
|
- example/spec/routing/phases_routing_spec.rb
|
@@ -324,6 +333,7 @@ files:
|
|
324
333
|
- lib/templates/erb/scaffold/new.html.erb
|
325
334
|
- lib/templates/erb/scaffold/show.html.erb
|
326
335
|
- lib/templates/factory_girl/factory.rb
|
336
|
+
- lib/templates/helper.rb
|
327
337
|
- lib/templates/rspec/helper/helper_spec.rb
|
328
338
|
- lib/templates/rspec/integration/request_spec.rb
|
329
339
|
- lib/templates/rspec/model/model_spec.rb
|