rspec_rails_scaffold_templates 1.0.0 → 1.0.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 +4 -4
- data/VERSION +1 -1
- data/lib/templates/rspec/scaffold/controller_spec.rb +5 -5
- data/rspec_rails_scaffold_templates.gemspec +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 85957f17443a8174b3a6faba670875a3f0bd8933
|
4
|
+
data.tar.gz: f8b312b8ff673c5374b3ac63bb93b9c2782abbf1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 53bbc2b51cfa6308d34f52f9328df500a779c59a756447a5680f328ab1c06a94a21d82017f9b8544de52b83d42f10ff08b7378bddb75e9740c1a96a752fa00dd
|
7
|
+
data.tar.gz: 55e25cc99b607c25b0d1cf228ef5d538a45a887b89f8ce1129260ea1d0caae88229463ece924ddbebe65ff75a6f6b1fa0a1961d1ae101f46030408ec6e5bf3c3
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.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
|
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.
|
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.
|
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-
|
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.
|
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-
|
11
|
+
date: 2014-09-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|