rspec_rails_scaffold_templates 2.2.0 → 2.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c0397f662aeecac0d125dd33d0e0e0a7f69090b1
4
- data.tar.gz: e8d7e1c5c9659bde7febc7937f831c97b70eaab5
3
+ metadata.gz: 22f304ea7d3c10cc3993dead5e5e59e8046106e1
4
+ data.tar.gz: f2eddc60ed9ca8bdf2b56eace8dbcbec32106754
5
5
  SHA512:
6
- metadata.gz: fbd4df5857ae2c2f55986aa9f2d29bb68b215e6503df5e33d36238f0e81bcbebc495b56644bd6da3fe1b521a057715560b196f7dbae138c1598a213c0b857f18
7
- data.tar.gz: d8e206c731e42c4d47a37c0809bb80ebe5a82f8e2bf821d121e36b04518a5f5be127db59cb951e52744b47016363d5e71bd6c35ebd08172e34b272aa906a8664
6
+ metadata.gz: 3876018c52d0d7de00b70320a70003a785c23d2e452d676502ce813fc9218437660bbf1078a4411bc082c5cddc47984805ed1f6631bea33b73b6da60ac736310
7
+ data.tar.gz: 95c22199d0eec3a3ba8c457c1a91ec849eefb33947909dbe3997602cd617bd0d6d32092b24f09f94798f495acd5b39cb89777ff71937a15e08de132fed58b36a
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.2.0
1
+ 2.2.1
@@ -12,9 +12,9 @@ require 'spec_helper'
12
12
  <% output_attributes = attributes.reject{|attribute| [:created_at, :deleted_at, :updated_at].index(attribute.name) or attribute.password_digest? } -%>
13
13
  describe "<%= ns_table_name %>/index", <%= type_metatag(:view) %> do
14
14
  <% if factory_girl -%>
15
- let(:<%= ns_file_name %>) {create :<%= ns_file_name %>}
15
+ let!(:<%= ns_file_name %>) {create :<%= ns_file_name %>}
16
16
  <% else -%>
17
- let(:<%= ns_file_name %>) do
17
+ let!(:<%= ns_file_name %>) do
18
18
  <%= class_name %>.create!(<%= ')' if output_attributes.empty? %>
19
19
  <% output_attributes.each_with_index do |attribute, attribute_index| -%>
20
20
  <%= attribute.name %>: <%= value_for(attribute) %><%= attribute_index == output_attributes.length - 1 ? '' : ','%>
@@ -27,7 +27,6 @@ describe "<%= ns_table_name %>/index", <%= type_metatag(:view) %> do
27
27
  <% if Rails.application.config.generators.options[:rails][:cancan] -%>
28
28
  allow(controller).to receive(:can?).and_return(true)
29
29
  <% end -%>
30
- <%= ns_file_name %> # to create
31
30
  assign :<%= table_name %>, <%= class_name %>.all
32
31
  end
33
32
 
@@ -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.2.0 ruby lib
5
+ # stub: rspec_rails_scaffold_templates 2.2.1 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "rspec_rails_scaffold_templates"
9
- s.version = "2.2.0"
9
+ s.version = "2.2.1"
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"]
13
13
  s.authors = ["Dmitri Koulikoff"]
14
- s.date = "2016-11-26"
14
+ s.date = "2017-01-08"
15
15
  s.description = "RSpec scaffold generator templates that use FactoryGirl and WiceGrid"
16
16
  s.email = "dima@koulikoff.ru"
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.2.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitri Koulikoff
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-26 00:00:00.000000000 Z
11
+ date: 2017-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec