Browse files

fix view specs with Rails 3.0.0.beta3

  • Loading branch information...
1 parent 7aaf172 commit b0afb8c2f572ef006d3d2700dbae1c5911b52f00 @mislav committed Apr 16, 2010
Showing with 7 additions and 6 deletions.
  1. +3 −3 .gitignore
  2. +3 −3 Gemfile
  3. +1 −0 spec/view_helpers/action_view_spec.rb
View
6 .gitignore
@@ -1,4 +1,4 @@
-/doc
-/rails
+.bundle
+doc
*.gem
-/coverage
+coverage
View
6 Gemfile
@@ -1,9 +1,9 @@
git 'git://github.com/rails/rails.git'
source :gemcutter
-gem 'activerecord', '~> 3.0.0.beta1'
-gem 'activeresource', '~> 3.0.0.beta1'
-gem 'actionpack', '~> 3.0.0.beta1'
+gem 'activerecord', '~> 3.0.0.beta3'
+gem 'activeresource', '~> 3.0.0.beta3'
+gem 'actionpack', '~> 3.0.0.beta3'
gem 'sequel', '~> 3.8.0'
gem 'rspec', '~> 1.3.0'
gem 'mocha', '~> 0.9.8'
View
1 spec/view_helpers/action_view_spec.rb
@@ -31,6 +31,7 @@
def render(locals)
@view = ActionView::Base.new([], @assigns, @controller)
@view.request = @request
+ @view.singleton_class.send(:include, @controller._router.url_helpers)
@view.render(:inline => @template, :locals => locals)
end

0 comments on commit b0afb8c

Please sign in to comment.