Skip to content

Commit

Permalink
moved Merb::Test::Rspec module inside the environment check
Browse files Browse the repository at this point in the history
  • Loading branch information
benburkert committed Feb 13, 2008
1 parent d117d44 commit c8af8f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
9 changes: 4 additions & 5 deletions merb_rspec/lib/merb_rspec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
Merb::Plugins.add_rakefiles "merb_rspec/merbtasks"
end

module Merb::Test::Rspec

end

# Don't include anything for RSpec if we're not in the test environment
if Merb.environment == "test"
require 'merb-core/test/fake_request'
Expand All @@ -15,11 +11,14 @@ module Merb::Test::Rspec
dependency 'hpricot'
dependency 'merb-test'


require 'spec'
require 'spec/mocks'
require 'spec/story'

module Merb::Test::Rspec

end

require File.join(File.dirname(__FILE__), 'matchers', 'controller_matchers')
require File.join(File.dirname(__FILE__), 'matchers', 'markup_matchers')

Expand Down
1 change: 0 additions & 1 deletion merb_rspec/specs/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
require 'rubygems'
require "merb-core"
require "merb-test"

Merb.start :environment => "test", :adapter => "runner"

Expand Down

0 comments on commit c8af8f4

Please sign in to comment.