rspec_rails_scaffold_templates 1.2.3 → 1.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/templates/rspec/scaffold/controller_spec.rb +1 -1
- data/rspec_rails_scaffold_templates.gemspec +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c5ace3dcb832579b7a882c8748ea886c708429bd
|
4
|
+
data.tar.gz: fb703f3cbefbfb9c0841e96673b1c2d80dbf6565
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8695b6a9c41b46b08ef66f4739ffc9e2611ea9cc6a8ba4cff70d82aecb6fc6eb7b7a7edd0cfa374e61510e063ee8350d11a24358a33d1ed1c5c4356984eec05
|
7
|
+
data.tar.gz: 600812423e7b0e0c687e0609e5c5cfe3684bd85d2e41b1e554c4f07ff609ea354b440fea4ae7aa7f74aebbdec7de59d544c9528306b5f9b122033c1bd9ea1129
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.2.
|
1
|
+
1.2.4
|
@@ -17,7 +17,7 @@ describe <%= controller_class_name %>Controller, type: :controller do
|
|
17
17
|
# This should return the minimal set of attributes required to create a valid
|
18
18
|
# <%= class_name %>. As you add validations to <%= class_name %>, be sure to
|
19
19
|
# adjust the attributes here as well. The list could not be empty.
|
20
|
-
<% attribute = attributes.detect{|a| a.name == 'name' || a.name == 'title' || a.name == 'code' || a.name =~ /name/ || a.name =~ /title/ || attributes.first
|
20
|
+
<% attribute = attributes.detect{|a| a.name == 'name' || a.name == 'title' || a.name == 'code' || a.name =~ /name/ || a.name =~ /title/} || attributes.first -%>
|
21
21
|
<% attribute_name = attribute.respond_to?(:column_name) ? attribute.column_name : attribute.name -%>
|
22
22
|
<% if Rails.application.config.generators.options[:rails][:fixture_replacement] == :factory_girl -%>
|
23
23
|
<% factory_girl = true -%>
|
@@ -2,11 +2,11 @@
|
|
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 1.2.
|
5
|
+
# stub: rspec_rails_scaffold_templates 1.2.4 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "rspec_rails_scaffold_templates"
|
9
|
-
s.version = "1.2.
|
9
|
+
s.version = "1.2.4"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|