rspec_rails_scaffold_templates 2.3 → 2.4
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: b23619be06fa089e1c04a66358ebcb1166455de232a5c0b56075e1c9f7548232
|
4
|
+
data.tar.gz: 3c1ca1f318b9a9a5de3226cd5663b456da71ffa5fcaebb82d27bd27f64029b66
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 319c48bc9126b3546135f93f4a7dbfa25114d83bd2c88d632b6509969b661dfef7b0d8e2e4caa5c1ee4e2d2acdc3f83df1b4af7ede69dd6d4ea4a280f81fee5f
|
7
|
+
data.tar.gz: b8fb14a1e82d5f9e3a44d7b8a84709e5fb2b8e90ab99564d333688e0d14431851a65f43ebc3cc85a74fa81f971b24f2de76426015eb8b9529b8145e5d0c82587
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.4
|
@@ -38,12 +38,12 @@ describe "<%= ns_table_name %>/index", <%= type_metatag(:view) %> do
|
|
38
38
|
<% for attribute in output_attributes -%>
|
39
39
|
<% if Rails.application.config.generators.options[:rails][:fixture_replacement] == :factory_bot -%>
|
40
40
|
<% if attribute.reference? -%>
|
41
|
-
assert_select 'tr>td', text: <%= ns_file_name %>.<%= attribute.name %>.name, count: 1
|
41
|
+
assert_select 'tr>td.<%= attribute.name %>', text: <%= ns_file_name %>.<%= attribute.name %>.name, count: 1
|
42
42
|
<% else -%>
|
43
|
-
assert_select 'tr>td', text: <%= ns_file_name %>.<%= attribute.name %>.to_s, count: 1
|
43
|
+
assert_select 'tr>td.<%= attribute.name %>', text: <%= ns_file_name %>.<%= attribute.name %>.to_s, count: 1
|
44
44
|
<% end -%>
|
45
45
|
<% else -%>
|
46
|
-
assert_select "tr>td", text: <%= value_for(attribute) %>.to_s, count: 1
|
46
|
+
assert_select "tr>td.<%= attribute.name %>", text: <%= value_for(attribute) %>.to_s, count: 1
|
47
47
|
<% end -%>
|
48
48
|
<% end -%>
|
49
49
|
end
|
@@ -56,12 +56,12 @@ describe "<%= ns_table_name %>/index", <%= type_metatag(:view) %> do
|
|
56
56
|
<% for attribute in output_attributes -%>
|
57
57
|
<% if Rails.application.config.generators.options[:rails][:fixture_replacement] == :factory_bot -%>
|
58
58
|
<% if attribute.reference? -%>
|
59
|
-
assert_select 'tr>td', text: <%= ns_file_name %>.<%= attribute.name %>.name, count: 1
|
59
|
+
assert_select 'tr>td.<%= attribute.name %>', text: <%= ns_file_name %>.<%= attribute.name %>.name, count: 1
|
60
60
|
<% else -%>
|
61
|
-
assert_select 'tr>td', text: <%= ns_file_name %>.<%= attribute.name %>.to_s, count: 1
|
61
|
+
assert_select 'tr>td.<%= attribute.name %>', text: <%= ns_file_name %>.<%= attribute.name %>.to_s, count: 1
|
62
62
|
<% end -%>
|
63
63
|
<% else -%>
|
64
|
-
assert_select "tr>td", text: <%= value_for(attribute) %>.to_s, count: 1
|
64
|
+
assert_select "tr>td.<%= attribute.name %>", text: <%= value_for(attribute) %>.to_s, count: 1
|
65
65
|
<% end -%>
|
66
66
|
<% end -%>
|
67
67
|
end
|
@@ -32,12 +32,12 @@ describe "<%= ns_table_name %>/show", <%= type_metatag(:view) %> do
|
|
32
32
|
<% for attribute in output_attributes -%>
|
33
33
|
<% if Rails.application.config.generators.options[:rails][:fixture_replacement] == :factory_bot -%>
|
34
34
|
<% if attribute.reference? -%>
|
35
|
-
assert_select 'dl>dd', text: Regexp.new(<%= ns_file_name %>.<%= attribute.name %>.name)
|
35
|
+
assert_select 'dl>dd.<%= attribute.name %>', text: Regexp.new(<%= ns_file_name %>.<%= attribute.name %>.name)
|
36
36
|
<% else -%>
|
37
|
-
assert_select 'dl>dd', text: Regexp.new(<%= ns_file_name %>.<%= attribute.name %>.to_s)
|
37
|
+
assert_select 'dl>dd.<%= attribute.name %>', text: Regexp.new(<%= ns_file_name %>.<%= attribute.name %>.to_s)
|
38
38
|
<% end -%>
|
39
39
|
<% else -%>
|
40
|
-
assert_select 'dl>dd', text: <%= value_for(attribute) %>
|
40
|
+
assert_select 'dl>dd.<%= attribute.name %>', text: <%= value_for(attribute) %>
|
41
41
|
<% end -%>
|
42
42
|
<% end -%>
|
43
43
|
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 2.
|
5
|
+
# stub: rspec_rails_scaffold_templates 2.4 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.4"
|
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-
|
14
|
+
s.date = "2019-12-11"
|
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.4'
|
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-
|
11
|
+
date: 2019-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|