rspec_rails_scaffold_templates 1.0.0 → 1.0.1

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: 8bdc50dc2870358191dbe48e27e78da86f218b6f
4
- data.tar.gz: 82770019be22c3c5ff24238d9cd584563d3dec92
3
+ metadata.gz: 85957f17443a8174b3a6faba670875a3f0bd8933
4
+ data.tar.gz: f8b312b8ff673c5374b3ac63bb93b9c2782abbf1
5
5
  SHA512:
6
- metadata.gz: 3dbb78cac857cc3c7888f055c4dae3c5c53c8ee80ad3d41b2a3d6558f58531f3f90ebfd9ba2587081473021b45c8b5f98f6929f5da820278011b5a87aeffe023
7
- data.tar.gz: 54c3a1b787c41211fd1b20f6dc180715a253a8fa8146092e0fd6326171840618f2fa4ba8b7ffb1b86aec7d17a5b0863dffa7ba7f960677cb0a76a41613dc4ae2
6
+ metadata.gz: 53bbc2b51cfa6308d34f52f9328df500a779c59a756447a5680f328ab1c06a94a21d82017f9b8544de52b83d42f10ff08b7378bddb75e9740c1a96a752fa00dd
7
+ data.tar.gz: 55e25cc99b607c25b0d1cf228ef5d538a45a887b89f8ce1129260ea1d0caae88229463ece924ddbebe65ff75a6f6b1fa0a1961d1ae101f46030408ec6e5bf3c3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.0.1
@@ -101,7 +101,7 @@ describe <%= controller_class_name %>Controller, :type => :controller do
101
101
  expect(response).to render_template("new")
102
102
  end
103
103
  end
104
- end
104
+ end # describe "POST create"
105
105
 
106
106
  describe "PUT update" do
107
107
  describe "with valid params" do
@@ -115,7 +115,7 @@ describe <%= controller_class_name %>Controller, :type => :controller do
115
115
 
116
116
  it "updates the requested <%= ns_file_name %>" do
117
117
  <%= file_name %> = <%= class_name %>.create! valid_attributes
118
- expect_any_instance_of(<%= class_name %>).to receive(:update).with(new_attributes.inject({}){|_, (k, v)| _[k] = v.to_s; _})
118
+ # expect_any_instance_of(<%= class_name %>).to receive(:update).with(new_attributes.inject({}){|_, (k, v)| _[k] = v.to_s; _})
119
119
  put :update, {:id => <%= file_name %>.to_param, :<%= ns_file_name %> => new_attributes}, valid_session
120
120
  <%= file_name %>.reload
121
121
  skip("Add assertions for updated state")
@@ -139,7 +139,7 @@ describe <%= controller_class_name %>Controller, :type => :controller do
139
139
  <%= file_name %> = <%= class_name %>.create! valid_attributes
140
140
  # allow_any_instance_of(<%= class_name %>).to receive(:update).and_return(false)
141
141
  put :update, {:id => <%= file_name %>.to_param, :<%= ns_file_name %> => invalid_attributes}, valid_session
142
- expect(assigns(:<%= ns_file_name %>)).to eq(<%= file_name %>)
142
+ expect(assigns(:<%= ns_file_name %>)).to be_a(<%= class_name %>)
143
143
  end
144
144
 
145
145
  it "re-renders the 'edit' template" do
@@ -149,7 +149,7 @@ describe <%= controller_class_name %>Controller, :type => :controller do
149
149
  expect(response).to render_template("edit")
150
150
  end
151
151
  end
152
- end
152
+ end # describe "PUT update"
153
153
 
154
154
  describe "DELETE destroy" do
155
155
  it "destroys the requested <%= ns_file_name %>" do
@@ -164,7 +164,7 @@ describe <%= controller_class_name %>Controller, :type => :controller do
164
164
  delete :destroy, {:id => <%= file_name %>.to_param}, valid_session
165
165
  expect(response).to redirect_to(<%= index_helper %>_url)
166
166
  end
167
- end
167
+ end # describe "DELETE destroy"
168
168
 
169
169
  end
170
170
  <% 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.0 ruby lib
5
+ # stub: rspec_rails_scaffold_templates 1.0.1 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "rspec_rails_scaffold_templates"
9
- s.version = "1.0.0"
9
+ s.version = "1.0.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 = "2014-09-12"
14
+ s.date = "2014-09-17"
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: 1.0.0
4
+ version: 1.0.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: 2014-09-12 00:00:00.000000000 Z
11
+ date: 2014-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec