ryanb-nifty-generators 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ *0.1.7* (August 15th, 2008)
2
+
3
+ * fixing shoulda tests
4
+
1
5
  *0.1.6* (August 7th, 2008)
2
6
 
3
7
  * adding option to specify Shoulda as testing framework in nifty_scaffold generator
@@ -1,14 +1,14 @@
1
1
 
2
- # Gem::Specification for Nifty-generators-0.1.6
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.6"
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-07}
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.6') do |p|
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,5 +1,5 @@
1
- context "edit action"
2
- should "render edit template"
1
+ context "edit action" do
2
+ should "render edit template" do
3
3
  get :edit, :id => <%= class_name %>.first
4
4
  assert_template 'edit'
5
5
  end
@@ -1,5 +1,5 @@
1
- context "index action"
2
- should "render index template"
1
+ context "index action" do
2
+ should "render index template" do
3
3
  get :index
4
4
  assert_template 'index'
5
5
  end
@@ -1,5 +1,5 @@
1
- context "new action"
2
- should "render new template"
1
+ context "new action" do
2
+ should "render new template" do
3
3
  get :new
4
4
  assert_template 'new'
5
5
  end
@@ -1,5 +1,5 @@
1
- context "show action"
2
- should "render show template"
1
+ context "show action" do
2
+ should "render show template" do
3
3
  get :show, :id => <%= class_name %>.first
4
4
  assert_template 'show'
5
5
  end
@@ -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') %>
@@ -1,7 +1,7 @@
1
1
  require 'test_helper'
2
2
 
3
3
  class <%= class_name %>Test < ActiveSupport::TestCase
4
- should "be valid"
4
+ should "be valid" do
5
5
  assert <%= class_name %>.new.valid?
6
6
  end
7
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.6
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-07 00:00:00 -07:00
12
+ date: 2008-08-15 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15