public
Description: Webrat - Ruby Acceptance Testing for Web applications
Homepage: http://gitrdoc.com/brynary/webrat/tree/master/
Clone URL: git://github.com/brynary/webrat.git
Make merb integration test load 'local' webrat, instead of the gem.
joshknowles (author)
Mon Dec 29 18:57:06 -0800 2008
commit  7044eb58634cd55c4447039e80ac14cbb01e0215
tree    1db74ccad7f229519479dba0729aa03355f7c912
parent  7258ea3349d3d90a38f64593b1cd35ff6f9306fd
...
 
 
1
2
3
...
1
2
3
4
5
0
@@ -1,3 +1,5 @@
0
+require File.dirname(__FILE__) + "/../../../../../lib/webrat"
0
+
0
 Merb.logger.info("Loaded TEST Environment...")
0
 Merb::Config.use { |c|
0
   c[:testing]           = true
...
17
18
19
 
 
 
 
20
21
...
17
18
19
20
21
22
23
24
25
0
@@ -17,4 +17,8 @@ Spec::Runner.configure do |config|
0
   config.include(Merb::Test::ViewHelper)
0
   config.include(Merb::Test::RouteHelper)
0
   config.include(Merb::Test::ControllerHelper)
0
+end
0
+
0
+Webrat.configure do |config|
0
+  config.mode = :merb
0
 end
0
\ No newline at end of file

Comments

foca Mon Dec 29 22:48:21 -0800 2008

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 Tue Dec 30 06:42:32 -0800 2008

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