rspec_rails_scaffold_templates 1.0.8 → 1.0.9
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 +2 -2
- 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: bf17493993334c02acb2d452598d6e5e236ee699
|
4
|
+
data.tar.gz: 97ac74060f4ecc9b74bf1bc471ce9084cc8e54b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c2c64c45e25ff350ac586cf2865a330e4121081cef9c0f13f6c6d5b4c583e576fb48d1aa8d15814efd102ca6b68745df881b4696a3307fb5c27fd35cf52a4c9
|
7
|
+
data.tar.gz: 4b7f7c4561fa3b34aaa8e4d9990c85c7fb5b287474db8100f3713797218fdcece869643d63be566fd488497ed5a8561431a1603abcdbfa20d2078b2c5be69226
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.9
|
@@ -16,10 +16,10 @@ describe <%= controller_class_name %>Controller, type: :controller do
|
|
16
16
|
# This should return the minimal set of attributes required to create a valid
|
17
17
|
# <%= class_name %>. As you add validations to <%= class_name %>, be sure to
|
18
18
|
# adjust the attributes here as well. The list could not be empty.
|
19
|
-
<% if Rails.application.config.generators.options[:rails][:fixture_replacement] == :factory_girl -%>
|
20
|
-
<% factory_girl = true -%>
|
21
19
|
<% attribute = attributes.detect{|a| attributes.detect{|a| a.name == 'name'} || attributes.detect{|a| a.name == 'title'} || attributes.first} -%>
|
22
20
|
<% attribute_name = attribute.respond_to?(:column_name) ? attribute.column_name : attribute.name -%>
|
21
|
+
<% if Rails.application.config.generators.options[:rails][:fixture_replacement] == :factory_girl -%>
|
22
|
+
<% factory_girl = true -%>
|
23
23
|
let(:valid_attributes) {FactoryGirl.build(:<%=file_name%>).attributes.slice *%w[<%= attribute_name %>]}
|
24
24
|
<% else -%>
|
25
25
|
<% factory_girl = false -%>
|
@@ -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.0.
|
5
|
+
# stub: rspec_rails_scaffold_templates 1.0.9 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "rspec_rails_scaffold_templates"
|
9
|
-
s.version = "1.0.
|
9
|
+
s.version = "1.0.9"
|
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"]
|