ryanb-nifty-generators 0.1.6 → 0.1.7
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.
- data/CHANGELOG +4 -0
- data/nifty-generators.gemspec +4 -4
- data/rails_generators/nifty_scaffold/templates/tests/shoulda/actions/create.rb +3 -3
- data/rails_generators/nifty_scaffold/templates/tests/shoulda/actions/destroy.rb +2 -2
- data/rails_generators/nifty_scaffold/templates/tests/shoulda/actions/edit.rb +2 -2
- data/rails_generators/nifty_scaffold/templates/tests/shoulda/actions/index.rb +2 -2
- data/rails_generators/nifty_scaffold/templates/tests/shoulda/actions/new.rb +2 -2
- data/rails_generators/nifty_scaffold/templates/tests/shoulda/actions/show.rb +2 -2
- data/rails_generators/nifty_scaffold/templates/tests/shoulda/actions/update.rb +3 -3
- data/rails_generators/nifty_scaffold/templates/tests/shoulda/model.rb +1 -1
- metadata +2 -2
data/CHANGELOG
CHANGED
data/nifty-generators.gemspec
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
|
2
|
-
# Gem::Specification for Nifty-generators-0.1.
|
2
|
+
# Gem::Specification for Nifty-generators-0.1.7
|
3
3
|
# Originally generated by Echoe
|
4
4
|
|
5
5
|
Gem::Specification.new do |s|
|
6
6
|
s.name = %q{nifty-generators}
|
7
|
-
s.version = "0.1.
|
7
|
+
s.version = "0.1.7"
|
8
8
|
|
9
9
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
10
10
|
s.authors = ["Ryan Bates"]
|
11
|
-
s.date = %q{2008-08-
|
11
|
+
s.date = %q{2008-08-15}
|
12
12
|
s.description = %q{A collection of useful generator scripts for Rails.}
|
13
13
|
s.email = %q{ryan (at) railscasts (dot) com}
|
14
14
|
s.extra_rdoc_files = ["CHANGELOG", "lib/nifty_generators.rb", "LICENSE", "README", "tasks/deployment.rake", "TODO"]
|
@@ -40,7 +40,7 @@ end
|
|
40
40
|
# require 'rake'
|
41
41
|
# require 'echoe'
|
42
42
|
#
|
43
|
-
# Echoe.new('nifty-generators', '0.1.
|
43
|
+
# Echoe.new('nifty-generators', '0.1.7') do |p|
|
44
44
|
# p.summary = "A collection of useful generator scripts for Rails."
|
45
45
|
# p.description = "A collection of useful generator scripts for Rails."
|
46
46
|
# p.url = "http://github.com/ryanb/nifty-generators"
|
@@ -1,11 +1,11 @@
|
|
1
|
-
context "create action"
|
2
|
-
should "render new template when model is invalid"
|
1
|
+
context "create action" do
|
2
|
+
should "render new template when model is invalid" do
|
3
3
|
<%= class_name %>.any_instance.stubs(:valid?).returns(false)
|
4
4
|
post :create
|
5
5
|
assert_template 'new'
|
6
6
|
end
|
7
7
|
|
8
|
-
should "redirect when model is valid"
|
8
|
+
should "redirect when model is valid" do
|
9
9
|
<%= class_name %>.any_instance.stubs(:valid?).returns(true)
|
10
10
|
post :create
|
11
11
|
assert_redirected_to <%= item_path_for_test('url') %>
|
@@ -1,5 +1,5 @@
|
|
1
|
-
context "destroy action"
|
2
|
-
should "destroy model and redirect to index action"
|
1
|
+
context "destroy action" do
|
2
|
+
should "destroy model and redirect to index action" do
|
3
3
|
<%= singular_name %> = <%= class_name %>.first
|
4
4
|
delete :destroy, :id => <%= singular_name %>
|
5
5
|
assert_redirected_to <%= plural_name %>_url
|
@@ -1,11 +1,11 @@
|
|
1
|
-
context "update action"
|
2
|
-
should "render edit template when model is invalid"
|
1
|
+
context "update action" do
|
2
|
+
should "render edit template when model is invalid" do
|
3
3
|
<%= class_name %>.any_instance.stubs(:valid?).returns(false)
|
4
4
|
put :update, :id => <%= class_name %>.first
|
5
5
|
assert_template 'edit'
|
6
6
|
end
|
7
7
|
|
8
|
-
should "redirect when model is valid"
|
8
|
+
should "redirect when model is valid" do
|
9
9
|
<%= class_name %>.any_instance.stubs(:valid?).returns(true)
|
10
10
|
put :update, :id => <%= class_name %>.first
|
11
11
|
assert_redirected_to <%= item_path_for_test('url') %>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ryanb-nifty-generators
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Bates
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-08-
|
12
|
+
date: 2008-08-15 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|