rspec_rails_scaffold_templates 3.2.0 → 3.2.1
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b12b321c6dbfe9e69343dffd621425e8b59dd4732bd2bce9f24b5c35e398a3d
|
4
|
+
data.tar.gz: 534284aff760071514d6252c7a60045a0585bb21cb7e5456f14cf2ca9db41bfc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d41c553c157a44a33baa6c9707ec05491e00110d6a3b8c6a5445a2e679ad88e93672ad1d69f28b15e53d645774d84247ec55a24fcff850ef76e88d887ac9cb37
|
7
|
+
data.tar.gz: 7d50a685719c41ac97b04796771d69189eb7de6c5bb95e5f54c49252ee2d51ec260d0377450c467d5da37fb8c0751e5595a6cedb5682d249c1b0eadfc00bc350
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.2.
|
1
|
+
3.2.1
|
@@ -132,9 +132,14 @@ describe "/<%= name.underscore.pluralize %>", <%= type_metatag(:request) %> do
|
|
132
132
|
expect {post_create}.not_to change(<%= class_name %>, :count)
|
133
133
|
end
|
134
134
|
|
135
|
-
it "
|
135
|
+
it "returns an unprocessable_entity response" do
|
136
136
|
post_create
|
137
|
-
expect(response).to
|
137
|
+
expect(response).to have_http_status :unprocessable_entity
|
138
|
+
end
|
139
|
+
|
140
|
+
it "renders the 'new' template)" do
|
141
|
+
post_create
|
142
|
+
expect(response).to render_template :new
|
138
143
|
end
|
139
144
|
end
|
140
145
|
end
|
@@ -172,12 +177,20 @@ describe "/<%= name.underscore.pluralize %>", <%= type_metatag(:request) %> do
|
|
172
177
|
context "with invalid parameters" do
|
173
178
|
let(:attributes) {invalid_attributes}
|
174
179
|
|
175
|
-
it "
|
180
|
+
it "returns an unprocessable_entity response" do
|
181
|
+
<% unless factory_bot -%>
|
182
|
+
<%= file_name %> = <%= class_name %>.create! valid_attributes
|
183
|
+
<% end -%>
|
184
|
+
patch_update
|
185
|
+
expect(response).to have_http_status :unprocessable_entity
|
186
|
+
end
|
187
|
+
|
188
|
+
it "renders the 'edit' template)" do
|
176
189
|
<% unless factory_bot -%>
|
177
190
|
<%= file_name %> = <%= class_name %>.create! valid_attributes
|
178
191
|
<% end -%>
|
179
192
|
patch_update
|
180
|
-
expect(response).to
|
193
|
+
expect(response).to render_template :edit
|
181
194
|
end
|
182
195
|
end
|
183
196
|
end
|
@@ -2,16 +2,16 @@
|
|
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.2.
|
5
|
+
# stub: rspec_rails_scaffold_templates 3.2.1 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "rspec_rails_scaffold_templates".freeze
|
9
|
-
s.version = "3.2.
|
9
|
+
s.version = "3.2.1"
|
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 = "2024-05-
|
14
|
+
s.date = "2024-05-18"
|
15
15
|
s.description = "RSpec scaffold generator templates that use FactoryGirl and WiceGrid".freeze
|
16
16
|
s.email = "dima@koulikoff.de".freeze
|
17
17
|
s.extra_rdoc_files = [
|
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: 3.2.
|
4
|
+
version: 3.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmitri Koulikoff
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-05-
|
11
|
+
date: 2024-05-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|