Skip to content

Commit

Permalink
Make merb integration test load 'local' webrat, instead of the gem.
Browse files Browse the repository at this point in the history
  • Loading branch information
joshknowles committed Dec 30, 2008
1 parent 7258ea3 commit 7044eb5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/integration/merb/config/environments/test.rb
@@ -1,3 +1,5 @@
require File.dirname(__FILE__) + "/../../../../../lib/webrat"

Merb.logger.info("Loaded TEST Environment...")
Merb::Config.use { |c|
c[:testing] = true
Expand Down
4 changes: 4 additions & 0 deletions spec/integration/merb/spec/spec_helper.rb
Expand Up @@ -17,4 +17,8 @@
config.include(Merb::Test::ViewHelper)
config.include(Merb::Test::RouteHelper)
config.include(Merb::Test::ControllerHelper)
end

Webrat.configure do |config|
config.mode = :merb
end

2 comments on commit 7044eb5

@foca
Copy link
Contributor

@foca foca commented on 7044eb5 Dec 30, 2008

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right. So I supposed it was this easy, but since I didn’t find a require “webrat” anywhere I was trying to figure where the magic was :)

@joshknowles
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah its a bit confusing as Webrat is a dependency of Merb so the support is built into the core somewhere.

Please sign in to comment.