Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

prefix Rails with :: (Ruby 1.9 compat)

- so it's not confused with Rspec::Rails
  • Loading branch information...
commit ef92779f14c7c2371c174aeddad7e63a8fee7035 1 parent fcd5984
David Chelimsky dchelimsky authored
Showing with 9 additions and 9 deletions.
  1. +7 −7 Rakefile
  2. +2 −2 lib/rspec/rails/example/request_example_group.rb
14 Rakefile
View
@@ -48,15 +48,15 @@ namespace :generate do
else
puts <<-MESSAGE
- You need to install rails in ./tmp/rails before you can run the
- #{t.name} task:
-
- git clone git://github.com/rails/rails tmp/rails
+You need to install rails in ./tmp/rails before you can run the
+#{t.name} task:
+
+ git clone git://github.com/rails/rails tmp/rails
- (We'll automate this eventually, but running 'git clone' from rake in this
- project is mysteriously full of fail)
+(We'll automate this eventually, but running 'git clone' from rake in this
+project is mysteriously full of fail)
- MESSAGE
+MESSAGE
end
end
4 lib/rspec/rails/example/request_example_group.rb
View
@@ -11,12 +11,12 @@ module RequestExampleGroupBehaviour
def self.included(mod)
mod.before do
@_result = Struct.new(:add_assertion).new
- @router = Rails.application.routes
+ @router = ::Rails.application.routes
end
end
def app
- Rails.application
+ ::Rails.application
end
Webrat.configure do |config|
Please sign in to comment.
Something went wrong with that request. Please try again.