technicalpickles-shoulda_generator 0.1.0 → 0.1.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.
data/README.markdown CHANGED
@@ -71,11 +71,11 @@ Usage is the same as the default Rails generators.
71
71
 
72
72
  Make a checkout somewhere:
73
73
 
74
- $ git clone git://github.com/technicalpickles/shoulda-generators.git
74
+ $ git clone git://github.com/technicalpickles/shoulda_generator.git
75
75
 
76
76
  Add symlinks so that Rails will pickup the generators from your checkout:
77
77
 
78
78
  $ mkdir -p ~/.rails/generators
79
- $ ln -s shoulda-generators/*_generator ~/.rails/generators
79
+ $ ln -s shoulda_generator/*_generator ~/.rails/generators
80
80
 
81
81
  Send pull requests to me, and I'll take a look at them.
data/Rakefile CHANGED
@@ -6,5 +6,5 @@ Echoe.new('shoulda_generator') do |p|
6
6
  p.email = 'josh@technicalpickles.com'
7
7
  p.summary = 'Generators which create tests using shoulda'
8
8
  p.url = 'http://github.com/technicalpickles/shoulda_generator'
9
- p.version = '0.1.0'
9
+ p.version = '0.1.1'
10
10
  end
@@ -28,11 +28,7 @@ class ShouldaModelGenerator < Rails::Generator::NamedBase
28
28
  end
29
29
 
30
30
  def factory_line(attribute)
31
- unless attribute.name == 'name'
32
- "#{file_name}.#{attribute.name} '#{attribute.default}'"
33
- else
34
- "#{file_name}.add_attribute '#{attribute.name}', '#{attribute.default}'"
35
- end
31
+ "#{file_name}.#{attribute.name} '#{attribute.default}'"
36
32
  end
37
33
 
38
34
  protected
@@ -3,7 +3,7 @@ require File.dirname(__FILE__) + '/../test_helper'
3
3
  class <%= controller_class_name %>ControllerTest < ActionController::TestCase
4
4
 
5
5
  def setup
6
- @<%= file_name %> = Factory(:event)
6
+ @<%= file_name %> = Factory(:<%= file_name %>)
7
7
  end
8
8
 
9
9
  should_be_restful do |resource|
@@ -1,10 +1,10 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = %q{shoulda_generator}
3
- s.version = "0.1.0"
3
+ s.version = "0.1.1"
4
4
 
5
5
  s.required_rubygems_version = Gem::Requirement.new("= 1.2") if s.respond_to? :required_rubygems_version=
6
6
  s.authors = ["Josh Nichols"]
7
- s.date = %q{2008-07-02}
7
+ s.date = %q{2008-08-28}
8
8
  s.description = %q{Generators which create tests using shoulda}
9
9
  s.email = %q{josh@technicalpickles.com}
10
10
  s.extra_rdoc_files = ["README.markdown"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: technicalpickles-shoulda_generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Nichols
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-07-02 00:00:00 -07:00
12
+ date: 2008-08-28 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency