rspec_rails_scaffold_templates 1.0.4 → 1.0.5

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
  SHA1:
3
- metadata.gz: 4253ccc5740c633236fee830b4f330c660f55c46
4
- data.tar.gz: 8b297f2f5ebe85b049642b55095fb225a61a5089
3
+ metadata.gz: 98aa459b675d68e9169c7d3ab6487bc547d0aaa6
4
+ data.tar.gz: e8cc609e20e2688474e5c2fe4e48e5f33a22b2f8
5
5
  SHA512:
6
- metadata.gz: 9b22d3943e8308d608d85ace29485b25583b8e0ad3294947962440713403c793844270a80aa9f13eaabe3320afcd7fbf580d08797d763d1b091c17d128abc85a
7
- data.tar.gz: 33fd1dc30866b18a1f65394b593c1cfb17829036dd27bed32604938ae166609707ccf520b73a061d668e4afac89da589cf50fc93e2b063ef6bc307bbd1acf400
6
+ metadata.gz: abcfc81e634f1c2435a0ef61c5596c569d43ea44e3036a8a5f381cbcac0846d5207c64fd427a62b50a4d8d35d1e15fb4286ebc450d7233f3d522cf61fa2d9f2b
7
+ data.tar.gz: 08b5ce1ed5ea2c67634a6e6392df0b5ec3e30daf33b8b33d663514f79b440eb93fee417d409fc4e2cc59671bee6914ec00e819a16c7c9aee49b5c4712f87aeac
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.4
1
+ 1.0.5
@@ -22,7 +22,7 @@ describe "<%= ns_table_name %>/edit", :type => :view do
22
22
  it "renders the edit <%= ns_file_name %> form" do
23
23
  render
24
24
 
25
- assert_select "form[action=?][method=?]", <%= ns_file_name %>_path(@<%= ns_file_name %>), "post" do
25
+ assert_select "form[action='#{<%= ns_file_name %>_path(@<%= ns_file_name %>)}'][method='post']" do
26
26
  <% for attribute in output_attributes -%>
27
27
  <% name = attribute.respond_to?(:column_name) ? attribute.column_name : attribute.name -%>
28
28
  <% input_type = attribute.reference? ? 'select' : attribute.input_type -%>
@@ -4,7 +4,7 @@ require 'rails_helper'
4
4
  require 'spec_helper'
5
5
  <% end -%>
6
6
 
7
- <% output_attributes = attributes.reject{|attribute| [:datetime, :timestamp, :time, :date].index(attribute.type) } -%>
7
+ <% output_attributes = attributes.reject{|attribute| [:created_at, :deleted_at, :updated_at].index(attribute.name) or attribute.password_digest? } -%>
8
8
  describe "<%= ns_table_name %>/index", :type => :view do
9
9
  before(:each) do
10
10
  allow(controller).to receive(:can?).and_return(true)
@@ -22,7 +22,7 @@ describe "<%= ns_table_name %>/new", :type => :view do
22
22
  it "renders new <%= ns_file_name %> form" do
23
23
  render
24
24
 
25
- assert_select "form[action=?][method=?]", <%= index_helper %>_path, "post" do
25
+ assert_select "form[action='#{<%= index_helper %>_path}'][method='post']" do
26
26
  <% for attribute in output_attributes -%>
27
27
  <% name = attribute.respond_to?(:column_name) ? attribute.column_name : attribute.name -%>
28
28
  <% input_type = attribute.reference? ? 'select' : attribute.input_type -%>
@@ -4,7 +4,7 @@ require 'rails_helper'
4
4
  require 'spec_helper'
5
5
  <% end -%>
6
6
 
7
- <% output_attributes = attributes.reject{|attribute| [:datetime, :timestamp, :time, :date].index(attribute.type) } -%>
7
+ <% output_attributes = attributes.reject{|attribute| [:created_at, :deleted_at, :updated_at].index(attribute.name) or attribute.password_digest? } -%>
8
8
  describe "<%= ns_table_name %>/show", :type => :view do
9
9
  before(:each) do
10
10
  allow(controller).to receive(:can?).and_return(true)
@@ -21,17 +21,17 @@ describe "<%= ns_table_name %>/show", :type => :view do
21
21
  <% end -%>
22
22
  end
23
23
 
24
- it "renders attributes in <p>" do
24
+ it "renders attributes in <dl>" do
25
25
  render
26
26
  <% for attribute in output_attributes -%>
27
27
  <% if Rails.application.config.generators.options[:rails][:fixture_replacement] == :factory_girl -%>
28
28
  <% if attribute.reference? -%>
29
- expect(rendered).to match(Regexp.new @<%= ns_file_name %>.<%= attribute.name %>.name)
29
+ assert_select 'dl>dd', text: Regexp.new(@<%= ns_file_name %>.<%= attribute.name %>.name)
30
30
  <% else -%>
31
- expect(rendered).to match(Regexp.new @<%= ns_file_name %>.<%= attribute.name %>.to_s)
31
+ assert_select 'dl>dd', text: Regexp.new(@<%= ns_file_name %>.<%= attribute.name %>.to_s)
32
32
  <% end -%>
33
33
  <% else -%>
34
- expect(rendered).to match(/<%= raw_value_for(attribute) %>/)
34
+ assert_select 'dl>dd', text: Regexp.new(raw_value_for(attribute))
35
35
  <% end -%>
36
36
  <% end -%>
37
37
  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 1.0.4 ruby lib
5
+ # stub: rspec_rails_scaffold_templates 1.0.5 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "rspec_rails_scaffold_templates"
9
- s.version = "1.0.4"
9
+ s.version = "1.0.5"
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 = "2014-10-13"
14
+ s.date = "2015-02-24"
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 = [
@@ -39,7 +39,7 @@ Gem::Specification.new do |s|
39
39
  ]
40
40
  s.homepage = "http://github.com/dima4p/rspec_rails_scaffold_templates"
41
41
  s.licenses = ["MIT"]
42
- s.rubygems_version = "2.2.2"
42
+ s.rubygems_version = "2.4.5"
43
43
  s.summary = "RSpec scaffold generator templates that use FactoryGirl and WiceGrid"
44
44
 
45
45
  if s.respond_to? :specification_version then
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: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitri Koulikoff
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-13 00:00:00.000000000 Z
11
+ date: 2015-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -125,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
125
125
  version: '0'
126
126
  requirements: []
127
127
  rubyforge_project:
128
- rubygems_version: 2.2.2
128
+ rubygems_version: 2.4.5
129
129
  signing_key:
130
130
  specification_version: 4
131
131
  summary: RSpec scaffold generator templates that use FactoryGirl and WiceGrid