Skip to content
This repository
Browse code

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
14 Rakefile
@@ -48,15 +48,15 @@ namespace :generate do
48 48 else
49 49 puts <<-MESSAGE
50 50
51   - You need to install rails in ./tmp/rails before you can run the
52   - #{t.name} task:
53   -
54   - git clone git://github.com/rails/rails tmp/rails
  51 +You need to install rails in ./tmp/rails before you can run the
  52 +#{t.name} task:
  53 +
  54 + git clone git://github.com/rails/rails tmp/rails
55 55
56   - (We'll automate this eventually, but running 'git clone' from rake in this
57   - project is mysteriously full of fail)
  56 +(We'll automate this eventually, but running 'git clone' from rake in this
  57 +project is mysteriously full of fail)
58 58
59   - MESSAGE
  59 +MESSAGE
60 60 end
61 61 end
62 62
4 lib/rspec/rails/example/request_example_group.rb
@@ -11,12 +11,12 @@ module RequestExampleGroupBehaviour
11 11 def self.included(mod)
12 12 mod.before do
13 13 @_result = Struct.new(:add_assertion).new
14   - @router = Rails.application.routes
  14 + @router = ::Rails.application.routes
15 15 end
16 16 end
17 17
18 18 def app
19   - Rails.application
  19 + ::Rails.application
20 20 end
21 21
22 22 Webrat.configure do |config|

0 comments on commit ef92779

Please sign in to comment.
Something went wrong with that request. Please try again.