model_base_generators 0.3.4 → 0.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7cad258ccf6f0f24af56363688b12926dc4dc9bc
4
- data.tar.gz: 31f6fa6e9f3b953769a8e65acace6f5b6af492eb
3
+ metadata.gz: ae30edbd2a2bc107cd3a22392d0e66515b2c1e3b
4
+ data.tar.gz: 9137980da4d7bd30aa9d5a00f3e4a6adb1cf9617
5
5
  SHA512:
6
- metadata.gz: 54a7840bc376155e844c9105a373ca43ba573899699bad72b092e66a34a70a3a6475f601b8ab4c59aa3215aa3381adb3264724af315e5d8de1bb76886a7c5b15
7
- data.tar.gz: 71c2c0e2015e657ba6c9430796002fc9a89130b5cd07012c94d80af6953b5627bba47708292e09c8e9aebfa0392a700870d82ea8077355e2faef75f7d6bfe23a
6
+ metadata.gz: 2b6c64781f024d3db0b756cc4c4e6f2decc6b0393a7f62671192abec170f173dbb5d80eaa69befed5df8984190dfac5bc1bd3f2b0188ff2a0b7757e504dc719a
7
+ data.tar.gz: e58d783b77c59932b41bb1fefcb4fd5206ea746ee870cff52e863b7216ade00aeadfc6baf3828e20d7778ecd9f1dc93126f15373f68929fa38ffc21a102aa565
@@ -0,0 +1,3 @@
1
+ # frozen_string_literal: true
2
+ module ProjectAssignmentsHelper
3
+ 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 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
@@ -1,3 +1,3 @@
1
1
  module ModelBase
2
- VERSION = "0.3.4"
2
+ VERSION = "0.3.5"
3
3
  end
@@ -0,0 +1,7 @@
1
+ <%- unless ModelBase.config.frozen_string_literal.nil? -%>
2
+ # frozen_string_literal: <%= ModelBase.config.frozen_string_literal.inspect %>
3
+ <%- end -%>
4
+ <% module_namespacing do -%>
5
+ module <%= class_name %>Helper
6
+ end
7
+ <% end -%>
@@ -3,12 +3,12 @@
3
3
  <%- end -%>
4
4
  require 'rails_helper'
5
5
 
6
- RSpec.describe "<%= class_name.pluralize %>", <%= type_metatag(:request) %> do
6
+ RSpec.describe '<%= class_name.pluralize %>', <%= type_metatag(:request) %> do
7
7
  let(:user) { FactoryGirl.create(:user) }
8
- before{ login_as(user, :scope => :user) }
8
+ before { login_as(user, scope: :user) }
9
9
 
10
- describe "GET /<%= table_name %>" do
11
- it "works! (now write some real specs)" do
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
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