rspec_rails_scaffold_templates 3.1 → 3.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/lib/rspec_rails_scaffold_templates/generators/templates/rspec/scaffold/edit_spec.rb +1 -1
- data/lib/rspec_rails_scaffold_templates/generators/templates/rspec/scaffold/index_spec.rb +1 -1
- data/lib/rspec_rails_scaffold_templates/generators/templates/rspec/scaffold/new_spec.rb +1 -1
- data/lib/rspec_rails_scaffold_templates/generators/templates/rspec/scaffold/request_spec.rb +9 -6
- data/lib/rspec_rails_scaffold_templates/generators/templates/rspec/scaffold/show_spec.rb +1 -1
- data/rspec_rails_scaffold_templates.gemspec +7 -7
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb69e3408debf4e91b5bd9ddfcdbc7caa8f6e698ba42b28dd499fc609767fd37
|
4
|
+
data.tar.gz: 210eeaa5fbf52a800ee75a8b828b477a024051f411f39b50da1f8872a1cdfc24
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f7e14d5ff594901eb5131fc0e886070b09bc49a9b4dc2584d3b1a75c96b456fea7b8fb18c0c185e6fef66dc7c879f81a87bf6c1c2bcd06afed2c150b6b7a5bc
|
7
|
+
data.tar.gz: 5d99f0574bed9f2b8464c199abab03cfed4bd6f227c08fcc7cb210bf5d5861e385700f2c6ef8652e3dbfee0d86596de20ad93ab0d7dc30277799e1b374a9ab7e
|
data/Gemfile
CHANGED
data/Rakefile
CHANGED
@@ -19,7 +19,7 @@ Jeweler::Tasks.new do |gem|
|
|
19
19
|
gem.license = "MIT"
|
20
20
|
gem.summary = %Q{RSpec scaffold generator templates that use FactoryGirl and WiceGrid}
|
21
21
|
gem.description = %Q{RSpec scaffold generator templates that use FactoryGirl and WiceGrid}
|
22
|
-
gem.email = "dima@koulikoff.
|
22
|
+
gem.email = "dima@koulikoff.de"
|
23
23
|
gem.authors = ["Dmitri Koulikoff"]
|
24
24
|
gem.version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
25
25
|
# dependencies defined in Gemfile
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.
|
1
|
+
3.2.0
|
@@ -10,7 +10,7 @@ require 'spec_helper'
|
|
10
10
|
<% end -%>
|
11
11
|
|
12
12
|
<% output_attributes = attributes.reject{|attribute| [:datetime, :timestamp, :time, :date].index(attribute.type) } -%>
|
13
|
-
describe "<%= ns_table_name %>/edit.html
|
13
|
+
describe "<%= ns_table_name %>/edit.html.<%= options[:template_engine] %>", <%= type_metatag(:view) %> do
|
14
14
|
<% if factory_bot -%>
|
15
15
|
let(:<%= ns_file_name %>) {create :<%= ns_file_name %>}
|
16
16
|
<% else -%>
|
@@ -10,7 +10,7 @@ require 'spec_helper'
|
|
10
10
|
<% end -%>
|
11
11
|
|
12
12
|
<% output_attributes = attributes.reject{|attribute| [:created_at, :deleted_at, :updated_at].index(attribute.name) or attribute.password_digest? } -%>
|
13
|
-
describe "<%= ns_table_name %>/index.html
|
13
|
+
describe "<%= ns_table_name %>/index.html.<%= options[:template_engine] %>", <%= type_metatag(:view) %> do
|
14
14
|
<% if factory_bot -%>
|
15
15
|
let!(:<%= ns_file_name %>) {create :<%= ns_file_name %>}
|
16
16
|
<% else -%>
|
@@ -10,7 +10,7 @@ require 'spec_helper'
|
|
10
10
|
<% end -%>
|
11
11
|
|
12
12
|
<% output_attributes = attributes.reject{|attribute| [:datetime, :timestamp, :time, :date].index(attribute.type) } -%>
|
13
|
-
describe "<%= ns_table_name %>/new.html
|
13
|
+
describe "<%= ns_table_name %>/new.html.<%= options[:template_engine] %>", <%= type_metatag(:view) %> do
|
14
14
|
<% if factory_bot -%>
|
15
15
|
let(:<%= ns_file_name %>) {build :<%= ns_file_name %>}
|
16
16
|
<% else -%>
|
@@ -19,6 +19,9 @@ describe "/<%= name.underscore.pluralize %>", <%= type_metatag(:request) %> do
|
|
19
19
|
before :each do
|
20
20
|
allow_any_instance_of(<%= controller_class_name %>Controller).to receive(:<%=method%>)
|
21
21
|
.and_return(<%=method%>)
|
22
|
+
<% if options[:cancan] -%>
|
23
|
+
allow_any_instance_of(Ability).to receive(:can?).and_return true
|
24
|
+
<% end -%>
|
22
25
|
end
|
23
26
|
|
24
27
|
<% end -%>
|
@@ -72,7 +75,7 @@ describe "/<%= name.underscore.pluralize %>", <%= type_metatag(:request) %> do
|
|
72
75
|
<% end -%>
|
73
76
|
|
74
77
|
describe "GET /show" do
|
75
|
-
subject(:get_show) {get <%=
|
78
|
+
subject(:get_show) {get <%= file_name %>_url(id: <%= file_name %>.to_param)}
|
76
79
|
|
77
80
|
it "renders a successful response" do
|
78
81
|
<% unless factory_bot -%>
|
@@ -84,7 +87,7 @@ describe "/<%= name.underscore.pluralize %>", <%= type_metatag(:request) %> do
|
|
84
87
|
end
|
85
88
|
|
86
89
|
describe "GET /new" do
|
87
|
-
subject(:get_new) {get <%=
|
90
|
+
subject(:get_new) {get new_<%= file_name %>_url}
|
88
91
|
|
89
92
|
it "renders a successful response" do
|
90
93
|
get_new
|
@@ -93,7 +96,7 @@ describe "/<%= name.underscore.pluralize %>", <%= type_metatag(:request) %> do
|
|
93
96
|
end
|
94
97
|
|
95
98
|
describe "GET /edit" do
|
96
|
-
subject(:get_edit) {get <%=
|
99
|
+
subject(:get_edit) {get edit_<%= file_name %>_url(id: <%= file_name %>.to_param)}
|
97
100
|
|
98
101
|
it "render a successful response" do
|
99
102
|
<% unless factory_bot -%>
|
@@ -118,7 +121,7 @@ describe "/<%= name.underscore.pluralize %>", <%= type_metatag(:request) %> do
|
|
118
121
|
|
119
122
|
it "redirects to the created <%= ns_file_name %>" do
|
120
123
|
post_create
|
121
|
-
expect(response).to redirect_to
|
124
|
+
expect(response).to redirect_to <%= file_name %>_url <%= class_name %>.last.to_param
|
122
125
|
end
|
123
126
|
end
|
124
127
|
|
@@ -138,7 +141,7 @@ describe "/<%= name.underscore.pluralize %>", <%= type_metatag(:request) %> do
|
|
138
141
|
|
139
142
|
describe "PATCH /update" do
|
140
143
|
subject(:patch_update) do
|
141
|
-
patch <%=
|
144
|
+
patch <%= file_name %>_url(id: <%= file_name %>.to_param), params: { <%= singular_table_name %>: attributes }
|
142
145
|
end
|
143
146
|
|
144
147
|
context "with valid parameters" do
|
@@ -180,7 +183,7 @@ describe "/<%= name.underscore.pluralize %>", <%= type_metatag(:request) %> do
|
|
180
183
|
end
|
181
184
|
|
182
185
|
describe "DELETE /destroy" do
|
183
|
-
subject(:delete_destroy) {delete <%=
|
186
|
+
subject(:delete_destroy) {delete <%= file_name %>_url(id: <%= file_name %>.to_param)}
|
184
187
|
|
185
188
|
it "destroys the requested <%= ns_file_name %>" do
|
186
189
|
<% if factory_bot -%>
|
@@ -5,7 +5,7 @@ require 'spec_helper'
|
|
5
5
|
<% end -%>
|
6
6
|
|
7
7
|
<% output_attributes = attributes.reject{|attribute| [:created_at, :deleted_at, :updated_at].index(attribute.name) or attribute.password_digest? } -%>
|
8
|
-
describe "<%= ns_table_name %>/show.html
|
8
|
+
describe "<%= ns_table_name %>/show.html.<%= options[:template_engine] %>", <%= type_metatag(:view) %> do
|
9
9
|
<% if Rails.application.config.generators.options[:rails][:fixture_replacement] == :factory_bot -%>
|
10
10
|
let(:<%= ns_file_name %>) {create :<%= ns_file_name %>}
|
11
11
|
<% else -%>
|
@@ -2,18 +2,18 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: rspec_rails_scaffold_templates 3.
|
5
|
+
# stub: rspec_rails_scaffold_templates 3.2.0 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "rspec_rails_scaffold_templates".freeze
|
9
|
-
s.version = "3.
|
9
|
+
s.version = "3.2.0"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib".freeze]
|
13
13
|
s.authors = ["Dmitri Koulikoff".freeze]
|
14
|
-
s.date = "
|
14
|
+
s.date = "2024-05-17"
|
15
15
|
s.description = "RSpec scaffold generator templates that use FactoryGirl and WiceGrid".freeze
|
16
|
-
s.email = "dima@koulikoff.
|
16
|
+
s.email = "dima@koulikoff.de".freeze
|
17
17
|
s.extra_rdoc_files = [
|
18
18
|
"LICENSE.txt",
|
19
19
|
"README.rdoc"
|
@@ -43,7 +43,7 @@ Gem::Specification.new do |s|
|
|
43
43
|
]
|
44
44
|
s.homepage = "http://github.com/dima4p/rspec_rails_scaffold_templates".freeze
|
45
45
|
s.licenses = ["MIT".freeze]
|
46
|
-
s.rubygems_version = "3.1.
|
46
|
+
s.rubygems_version = "3.1.4".freeze
|
47
47
|
s.summary = "RSpec scaffold generator templates that use FactoryGirl and WiceGrid".freeze
|
48
48
|
|
49
49
|
if s.respond_to? :specification_version then
|
@@ -53,13 +53,13 @@ Gem::Specification.new do |s|
|
|
53
53
|
if s.respond_to? :add_runtime_dependency then
|
54
54
|
s.add_development_dependency(%q<rspec>.freeze, ["~> 3.1"])
|
55
55
|
s.add_development_dependency(%q<rdoc>.freeze, ["~> 4.1"])
|
56
|
-
s.add_development_dependency(%q<bundler>.freeze, ["~>
|
56
|
+
s.add_development_dependency(%q<bundler>.freeze, ["~> 2.3.9"])
|
57
57
|
s.add_development_dependency(%q<jeweler>.freeze, ["~> 2.0"])
|
58
58
|
s.add_development_dependency(%q<simplecov>.freeze, ["~> 0.0"])
|
59
59
|
else
|
60
60
|
s.add_dependency(%q<rspec>.freeze, ["~> 3.1"])
|
61
61
|
s.add_dependency(%q<rdoc>.freeze, ["~> 4.1"])
|
62
|
-
s.add_dependency(%q<bundler>.freeze, ["~>
|
62
|
+
s.add_dependency(%q<bundler>.freeze, ["~> 2.3.9"])
|
63
63
|
s.add_dependency(%q<jeweler>.freeze, ["~> 2.0"])
|
64
64
|
s.add_dependency(%q<simplecov>.freeze, ["~> 0.0"])
|
65
65
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec_rails_scaffold_templates
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmitri Koulikoff
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-05-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 2.3.9
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 2.3.9
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: jeweler
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -81,7 +81,7 @@ dependencies:
|
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0.0'
|
83
83
|
description: RSpec scaffold generator templates that use FactoryGirl and WiceGrid
|
84
|
-
email: dima@koulikoff.
|
84
|
+
email: dima@koulikoff.de
|
85
85
|
executables: []
|
86
86
|
extensions: []
|
87
87
|
extra_rdoc_files:
|
@@ -113,7 +113,7 @@ homepage: http://github.com/dima4p/rspec_rails_scaffold_templates
|
|
113
113
|
licenses:
|
114
114
|
- MIT
|
115
115
|
metadata: {}
|
116
|
-
post_install_message:
|
116
|
+
post_install_message:
|
117
117
|
rdoc_options: []
|
118
118
|
require_paths:
|
119
119
|
- lib
|
@@ -128,8 +128,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
128
128
|
- !ruby/object:Gem::Version
|
129
129
|
version: '0'
|
130
130
|
requirements: []
|
131
|
-
rubygems_version: 3.1.
|
132
|
-
signing_key:
|
131
|
+
rubygems_version: 3.1.4
|
132
|
+
signing_key:
|
133
133
|
specification_version: 4
|
134
134
|
summary: RSpec scaffold generator templates that use FactoryGirl and WiceGrid
|
135
135
|
test_files: []
|