Skip to content
This repository
  • 2 commits
  • 2 files changed
  • 0 comments
  • 2 contributors
6  .travis.yml
@@ -18,3 +18,9 @@ matrix:
18 18
       env: RAILS_VERSION=master
19 19
     - rvm: 1.9.2
20 20
       env: RAILS_VERSION=master
  21
+  allow_failures:
  22
+    - rvm: 1.9.3
  23
+      env: RAILS_VERSION=master
  24
+    - env: RAILS_VERSION=3-2-stable
  25
+    - env: RAILS_VERSION=3-1-stable
  26
+    - env: RAILS_VERSION=3-0-stable
2  lib/generators/rspec/scaffold/scaffold_generator.rb
@@ -148,7 +148,7 @@ def value_for(attribute)
148 148
             "#{attribute.name.titleize}".inspect
149 149
           when :integer
150 150
             @attribute_id_map ||= {}
151  
-            @attribute_id_map[attribute] ||= (@attribute_id_map.keys.size + 1).to_s
  151
+            @attribute_id_map[attribute] ||= @attribute_id_map.keys.size.next.to_s
152 152
           else
153 153
             attribute.default.inspect
154 154
           end

No commit comments for this range

Something went wrong with that request. Please try again.