rspec_rails_scaffold_templates 2.4 → 2.5
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: e21f12249e46090795faf7ddc61b9a0e4ec27a0ea40d67cbe6335edcbb741cc8
|
4
|
+
data.tar.gz: e0c075d4764315b0d3f8d34e576f842a1b271a8af9f6dab4d60e3d3705cb7a1e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a29d95893929b859daf408eeccdf0a5c97880e5ba21cc5f52c7d2feec6abeeddafdef1ca462a122c652763ade92937aef13fd9fbc68dd8f2e128d91634759ac9
|
7
|
+
data.tar.gz: c92365caeb042c307857ebb29f7f4e33ee6f5034bbe5bbada1333e72dcc46f2b4553dfe4774bc881fce35d898c6c798286b46f2513d5a9a781fbe3430f357b20
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.5
|
data/lib/rspec_rails_scaffold_templates/generators/templates/rspec/scaffold/controller_spec.rb
CHANGED
@@ -26,7 +26,7 @@ describe <%= controller_class_name %>Controller, <%= type_metatag(:controller) %
|
|
26
26
|
<% if links.present? -%>
|
27
27
|
let(:valid_attributes) do
|
28
28
|
attributes_for(:<%=file_name%>)
|
29
|
-
.slice(*%
|
29
|
+
.slice(*%i[<%= attribute_name %>])
|
30
30
|
.merge(
|
31
31
|
<% links.each do |relation| -%>
|
32
32
|
<%= relation.name %>_id: create(:<%= relation.name %>).id,
|
@@ -34,7 +34,7 @@ describe <%= controller_class_name %>Controller, <%= type_metatag(:controller) %
|
|
34
34
|
)
|
35
35
|
end
|
36
36
|
<% else -%>
|
37
|
-
let(:valid_attributes) {attributes_for(:<%=file_name%>).slice *%
|
37
|
+
let(:valid_attributes) {attributes_for(:<%=file_name%>).slice *%i[<%= attribute_name %>]}
|
38
38
|
<% end -%>
|
39
39
|
<% else -%>
|
40
40
|
<% factory_bot = false -%>
|
@@ -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 2.
|
5
|
+
# stub: rspec_rails_scaffold_templates 2.5 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "rspec_rails_scaffold_templates".freeze
|
9
|
-
s.version = "2.
|
9
|
+
s.version = "2.5"
|
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 = "2019-12-
|
14
|
+
s.date = "2019-12-12"
|
15
15
|
s.description = "RSpec scaffold generator templates that use FactoryGirl and WiceGrid".freeze
|
16
16
|
s.email = "dima@koulikoff.ru".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: '2.
|
4
|
+
version: '2.5'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmitri Koulikoff
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-12-
|
11
|
+
date: 2019-12-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|