ryanb-nifty-generators 0.1.3 → 0.1.4

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 CHANGED
@@ -1,3 +1,11 @@
1
+ *0.1.4* (July 21st, 2008)
2
+
3
+ * using same logic as model spec in model test for scaffold
4
+
5
+ * simplifying model spec generated by scaffold
6
+
7
+ * adding error_messages_for to form partial
8
+
1
9
  *0.1.3* (June 20th, 2008)
2
10
 
3
11
  * using _url in controllers instead of _path
@@ -1,16 +1,14 @@
1
1
 
2
- # Gem::Specification for Nifty-generators-0.1.3
2
+ # Gem::Specification for Nifty-generators-0.1.4
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.3"
8
-
9
- s.specification_version = 2 if s.respond_to? :specification_version=
7
+ s.version = "0.1.4"
10
8
 
11
9
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
10
  s.authors = ["Ryan Bates"]
13
- s.date = %q{2008-06-20}
11
+ s.date = %q{2008-07-21}
14
12
  s.description = %q{A collection of useful generator scripts for Rails.}
15
13
  s.email = %q{ryan (at) railscasts (dot) com}
16
14
  s.extra_rdoc_files = ["CHANGELOG", "lib/nifty_generators.rb", "LICENSE", "README", "tasks/deployment.rake", "TODO"]
@@ -20,9 +18,19 @@ Gem::Specification.new do |s|
20
18
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Nifty-generators", "--main", "README"]
21
19
  s.require_paths = ["lib"]
22
20
  s.rubyforge_project = %q{nifty-generators}
23
- s.rubygems_version = %q{1.0.0}
21
+ s.rubygems_version = %q{1.2.0}
24
22
  s.summary = %q{A collection of useful generator scripts for Rails.}
25
23
  s.test_files = ["test/test_helper.rb", "test/test_nifty_config_generator.rb", "test/test_nifty_layout_generator.rb", "test/test_nifty_scaffold_generator.rb"]
24
+
25
+ if s.respond_to? :specification_version then
26
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
27
+ s.specification_version = 2
28
+
29
+ if current_version >= 3 then
30
+ else
31
+ end
32
+ else
33
+ end
26
34
  end
27
35
 
28
36
 
@@ -34,7 +42,7 @@ end
34
42
  # begin
35
43
  # require 'echoe'
36
44
  #
37
- # Echoe.new('nifty-generators', '0.1.3') do |p|
45
+ # Echoe.new('nifty-generators', '0.1.4') do |p|
38
46
  # p.summary = "A collection of useful generator scripts for Rails."
39
47
  # p.description = "A collection of useful generator scripts for Rails."
40
48
  # p.url = "http://github.com/ryanb/nifty-generators"
@@ -4,7 +4,7 @@
4
4
  response.should render_template(:new)
5
5
  end
6
6
 
7
- it "create action should redirect to index action when model is valid" do
7
+ it "create action should redirect when model is valid" do
8
8
  <%= class_name %>.any_instance.stubs(:valid?).returns(true)
9
9
  post :create
10
10
  response.should redirect_to(<%= item_path_for_spec('url') %>)
@@ -4,7 +4,7 @@
4
4
  response.should render_template(:edit)
5
5
  end
6
6
 
7
- it "update action should redirect to show action when model is valid" do
7
+ it "update action should redirect when model is valid" do
8
8
  <%= class_name %>.any_instance.stubs(:valid?).returns(true)
9
9
  put :update, :id => <%= class_name %>.first
10
10
  response.should redirect_to(<%= item_path_for_spec('url') %>)
@@ -1,11 +1,7 @@
1
1
  require File.dirname(__FILE__) + '/../spec_helper'
2
2
 
3
3
  describe <%= class_name %> do
4
- before(:each) do
5
- @<%= singular_name %> = <%= class_name %>.new
6
- end
7
-
8
4
  it "should be valid" do
9
- @<%= singular_name %>.should be_valid
5
+ <%= class_name %>.new.should be_valid
10
6
  end
11
7
  end
@@ -1,8 +1,7 @@
1
1
  require 'test_helper'
2
2
 
3
3
  class <%= class_name %>Test < ActiveSupport::TestCase
4
- # Replace this with your real tests.
5
- def test_truth
6
- assert true
4
+ def test_should_be_valid
5
+ assert <%= class_name %>.new.valid?
7
6
  end
8
7
  end
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.3
4
+ version: 0.1.4
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-06-20 00:00:00 -07:00
12
+ date: 2008-07-21 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15