spec/spec_helper.rb in watir-webdriver-rails-0.0.6 vs spec/spec_helper.rb in watir-webdriver-rails-0.0.7

- old
+ new

@@ -1,23 +1,24 @@ -# encoding: utf-8 -require 'rubygems' - -ENV["RAILS_ENV"] ||= 'test' - -require File.expand_path("../rails/config/environment", __FILE__) - -require 'rspec/rails' -#require 'watir-webdriver-rails' -require File.expand_path("../../watir-webdriver-rails", __FILE__) - -WatirWebdriverRails.host = "localhost" -WatirWebdriverRails.port = 57124 - -Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f} - - -RSpec.configure do |config| - config.mock_with :rspec -end - - - +# encoding: utf-8 +require 'rubygems' + +ENV["RAILS_ENV"] ||= 'test' + +require File.expand_path("../rails/config/environment", __FILE__) + +require 'rspec/rails' +#require 'watir-webdriver-rails' +require File.expand_path("../../lib/watir-webdriver-rails", __FILE__) + +WatirWebdriverRails.host = "localhost" +WatirWebdriverRails.port = 57124 +WatirWebdriverRails.close_browser_after_finish = true + +Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f} + + +RSpec.configure do |config| + +end + + +