<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>lib/ramaze/spec/bacon.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,7 +1,4 @@
-begin; require 'rubygems'; rescue LoadError; end
-
-require(File.expand_path(&quot;#{__FILE__}/../&quot;)) unless defined?(Ramaze)
-require 'innate/spec'
+require File.expand_path('../', __FILE__) unless defined?(Ramaze)
 
 def spec_requires(*libs)
   spec_precondition 'require' do
@@ -26,26 +23,11 @@ module Ramaze
   middleware!(:spec){|m| m.run(AppMap) }
 end
 
-shared :rack_test do
-  Ramaze.setup_dependencies
-  extend Rack::Test::Methods
-
-  def app; Ramaze.middleware; end
-end
-
-# Backwards compatibility
-shared(:mock){
-  Ramaze.deprecated('behaves_like(:mock)', 'behaves_like(:rack_test)')
-  behaves_like :rack_test
-}
-
-shared :webrat do
-  behaves_like :rack_test
-
-  require 'webrat'
-
-  Webrat.configure{|config| config.mode = :rack_test }
-
-  extend Webrat::Methods
-  extend Webrat::Matchers
+# FIXME: will remove that in 2009.07, and then we can offer integration with
+#        any other test-framework we like and they can share this code.
+#        Then Ramaze can be:
+#          Any ruby, any ORM, any templating-engine, any test-framework
+unless defined?(Bacon)
+  Ramaze.deprecated &quot;require('ramaze/spec')&quot;, &quot;require('ramaze/spec/bacon')&quot;
+  require 'ramaze/spec/bacon'
 end</diff>
      <filename>lib/ramaze/spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -4,7 +4,6 @@ if caller_line = caller.grep(%r!spec/ramaze/!).first
   $0 = caller_file
 end
 
-require File.expand_path(File.join(File.dirname(__FILE__), &quot;../lib/ramaze&quot;))
-require 'ramaze/spec'
+require File.expand_path('../../lib/ramaze/spec/bacon', __FILE__)
 
 Ramaze.options.roots = [caller_root] if caller_root</diff>
      <filename>spec/helper.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>3e3bc0ab8a69af01709731df92024fd92d91d959</id>
    </parent>
  </parents>
  <author>
    <name>Michael Fellinger</name>
    <email>m.fellinger@gmail.com</email>
  </author>
  <url>http://github.com/manveru/ramaze/commit/fdde916069c9acd2dcc3300d51dfb2d0cc9e879d</url>
  <id>fdde916069c9acd2dcc3300d51dfb2d0cc9e879d</id>
  <committed-date>2009-05-31T22:30:41-07:00</committed-date>
  <authored-date>2009-05-31T22:30:41-07:00</authored-date>
  <message>Move the bacon-specific code to ramaze/spec/bacon, prepare for test-framework agnostic behaviour</message>
  <tree>d82b78ebaf74745e81edd3a9bbb6476b8fd5c815</tree>
  <committer>
    <name>Michael Fellinger</name>
    <email>m.fellinger@gmail.com</email>
  </committer>
</commit>
