rspec_rails_scaffold_templates 2.5 → 2.6
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: fb7bc6888d5364143c617f1ee568bafcd547a05bf8ddccc23e1877900e924292
|
4
|
+
data.tar.gz: a675eb7daebd54272b81164f88539bbc378c18a8744d5c1ed2282167efca9ee6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eaf4e76ebf113d5fd03c443dcb8e7b36c7362bf3d8fe517bc070564f487120d6ceffc73e092a33192084539844ed22247dfb1417ef80780f363ce2740bcc30f5
|
7
|
+
data.tar.gz: 3491258ae90fb1b4d01962d8c01b8fb7f9965b2d8f8bc39361c826964ed80eeac976fff3be0709a2d9ad9f45fc3215c64bface440ee2e84f5c4366e81b496bd5
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.6
|
data/lib/rspec_rails_scaffold_templates/generators/templates/rspec/scaffold/api_controller_spec.rb
CHANGED
@@ -26,7 +26,7 @@ describe Api::<%= options[:api_version].camelcase + '::' if options[:api_version
|
|
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 Api::<%= options[:api_version].camelcase + '::' if options[:api_version
|
|
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.6 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.6"
|
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 = "2020-01-05"
|
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.6'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmitri Koulikoff
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|