Skip to content

Commit

Permalink
prefix Rails with :: (Ruby 1.9 compat)
Browse files Browse the repository at this point in the history
- so it's not confused with Rspec::Rails
  • Loading branch information
dchelimsky committed Mar 3, 2010
1 parent fcd5984 commit ef92779
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions Rakefile
Expand Up @@ -48,15 +48,15 @@ namespace :generate do
else else
puts <<-MESSAGE puts <<-MESSAGE
You need to install rails in ./tmp/rails before you can run the You need to install rails in ./tmp/rails before you can run the
#{t.name} task: #{t.name} task:
git clone git://github.com/rails/rails tmp/rails git clone git://github.com/rails/rails tmp/rails
(We'll automate this eventually, but running 'git clone' from rake in this (We'll automate this eventually, but running 'git clone' from rake in this
project is mysteriously full of fail) project is mysteriously full of fail)
MESSAGE MESSAGE
end end
end end


Expand Down
4 changes: 2 additions & 2 deletions lib/rspec/rails/example/request_example_group.rb
Expand Up @@ -11,12 +11,12 @@ module RequestExampleGroupBehaviour
def self.included(mod) def self.included(mod)
mod.before do mod.before do
@_result = Struct.new(:add_assertion).new @_result = Struct.new(:add_assertion).new
@router = Rails.application.routes @router = ::Rails.application.routes
end end
end end


def app def app
Rails.application ::Rails.application
end end


Webrat.configure do |config| Webrat.configure do |config|
Expand Down

0 comments on commit ef92779

Please sign in to comment.