martijn-shoulda_generator 0.2.1 → 0.2.2

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
@@ -24,7 +24,6 @@ The next morning, I was struck awake at 5am with the inspiration to start implem
24
24
 
25
25
  * [shoulda](http://thoughtbot.com/projects/shoulda) installed as a plugin
26
26
  * [factory\_girl](http://github.com/thoughtbot/factory_girl) gem installed
27
- * [factory\_girl\_on\_rails](http://github.com/technicalpickles/factory_girl_on_rails) installed as a plugin
28
27
 
29
28
  ### shoulda\_scaffold
30
29
 
@@ -42,7 +41,6 @@ The next morning, I was struck awake at 5am with the inspiration to start implem
42
41
 
43
42
  * [shoulda](http://thoughtbot.com/projects/shoulda) installed as a plugin
44
43
  * [factory\_girl](http://github.com/thoughtbot/factory_girl) gem installed
45
- * [factory\_girl\_on\_rails](http://github.com/technicalpickles/factory_girl_on_rails) installed as a plugin
46
44
  * [haml](http://haml.hamptoncatlin.com/) gem installed on the system, and the project has been hamlified using `haml --rails`
47
45
 
48
46
  ## Getting it
@@ -65,12 +63,11 @@ Usage is the same as the default Rails generators.
65
63
 
66
64
  ## Configuring it
67
65
 
68
- You can override the default values for templating and functional\_test\_style by placing a .shoulda\_generator file in your home directory.
66
+ You can override the default values for templating by placing a .shoulda\_generator file in your home directory.
69
67
 
70
68
  Here's an example `.shoulda_generator`:
71
69
 
72
70
  :templating: erb # supported options: haml|erb
73
- :functional_test_syle: basic # supported options: should_be_restful|basic
74
71
 
75
72
  ## Developing it
76
73
 
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
- :patch: 1
2
+ :patch: 2
3
3
  :major: 0
4
4
  :minor: 2
@@ -25,7 +25,7 @@ class <%= controller_class_name %>ControllerTest < ActionController::TestCase
25
25
  @<%= file_name %> = <%= class_name %>.find(:all).last
26
26
  end
27
27
 
28
- should_redirect_to '<%= file_name %>_path(@<%= file_name %>)'
28
+ should_redirect_to('<%= file_name %>') { <%= file_name %>_path(@<%= file_name %>) }
29
29
  end
30
30
 
31
31
  context 'GET to show' do
@@ -53,7 +53,7 @@ class <%= controller_class_name %>ControllerTest < ActionController::TestCase
53
53
  @<%= file_name %> = Factory(:<%= file_name %>)
54
54
  put :update, :id => @<%= file_name %>.id, :<%= file_name %> => Factory.attributes_for(:<%= file_name %>)
55
55
  end
56
- should_redirect_to '<%= file_name %>_path(@<%= file_name %>)'
56
+ should_redirect_to('<%= file_name %>') { <%= file_name %>_path(@<%= file_name %>) }
57
57
  end
58
58
 
59
59
  context 'DELETE to destroy' do
@@ -61,6 +61,6 @@ class <%= controller_class_name %>ControllerTest < ActionController::TestCase
61
61
  @<%= file_name %> = Factory(:<%= file_name %>)
62
62
  delete :destroy, :id => @<%= file_name %>.id
63
63
  end
64
- should_redirect_to '<%= table_name %>_path'
64
+ should_redirect_to('<%= table_name %>') { <%= table_name %>_path }
65
65
  end
66
66
  end
metadata CHANGED
@@ -1,10 +1,11 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: martijn-shoulda_generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Nichols
8
+ - Martijn Storck
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []