rspec to capybara-webkit. simplercov now use cucumber
This commit is contained in:
parent
28ddc152e9
commit
463644c882
4 changed files with 24 additions and 40 deletions
|
@ -17,21 +17,14 @@ require 'email_spec'
|
|||
# in spec/support/ and its subdirectories.
|
||||
Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}
|
||||
|
||||
# Use capybara-webkit
|
||||
Capybara.javascript_driver = :webkit
|
||||
|
||||
RSpec.configure do |config|
|
||||
# == Mock Framework
|
||||
#
|
||||
# If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
|
||||
#
|
||||
# config.mock_with :mocha
|
||||
# config.mock_with :flexmock
|
||||
# config.mock_with :rr
|
||||
config.mock_with :rspec
|
||||
|
||||
config.include LoginMacros
|
||||
|
||||
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
|
||||
config.fixture_path = "#{::Rails.root}/spec/fixtures"
|
||||
|
||||
# If you're not using ActiveRecord, or you'd prefer not to run each of your
|
||||
# examples within a transaction, remove the following line or assign false
|
||||
# instead of true.
|
||||
|
@ -52,6 +45,12 @@ RSpec.configure do |config|
|
|||
DatabaseCleaner.start
|
||||
|
||||
WebMock.disable_net_connect!(allow_localhost: true)
|
||||
|
||||
# !!! Observers disabled by default in tests
|
||||
#
|
||||
# Use next code to enable observers
|
||||
# before(:each) { ActiveRecord::Base.observers.enable(:all) }
|
||||
#
|
||||
ActiveRecord::Base.observers.disable :all
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue