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: cb69e3408debf4e91b5bd9ddfcdbc7caa8f6e698ba42b28dd499fc609767fd37
4
- data.tar.gz: 210eeaa5fbf52a800ee75a8b828b477a024051f411f39b50da1f8872a1cdfc24
3
+ metadata.gz: 6b12b321c6dbfe9e69343dffd621425e8b59dd4732bd2bce9f24b5c35e398a3d
4
+ data.tar.gz: 534284aff760071514d6252c7a60045a0585bb21cb7e5456f14cf2ca9db41bfc
5
5
  SHA512:
6
- metadata.gz: 2f7e14d5ff594901eb5131fc0e886070b09bc49a9b4dc2584d3b1a75c96b456fea7b8fb18c0c185e6fef66dc7c879f81a87bf6c1c2bcd06afed2c150b6b7a5bc
7
- data.tar.gz: 5d99f0574bed9f2b8464c199abab03cfed4bd6f227c08fcc7cb210bf5d5861e385700f2c6ef8652e3dbfee0d86596de20ad93ab0d7dc30277799e1b374a9ab7e
6
+ metadata.gz: d41c553c157a44a33baa6c9707ec05491e00110d6a3b8c6a5445a2e679ad88e93672ad1d69f28b15e53d645774d84247ec55a24fcff850ef76e88d887ac9cb37
7
+ data.tar.gz: 7d50a685719c41ac97b04796771d69189eb7de6c5bb95e5f54c49252ee2d51ec260d0377450c467d5da37fb8c0751e5595a6cedb5682d249c1b0eadfc00bc350
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.2.0
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 "renders a successful response (i.e. to display the 'new' template)" do
135
+ it "returns an unprocessable_entity response" do
136
136
  post_create
137
- expect(response).to be_successful
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 "renders a successful response (i.e. to display the 'edit' template)" do
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 be_successful
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.0 ruby lib
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.0"
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-17"
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.0
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-17 00:00:00.000000000 Z
11
+ date: 2024-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec