Commit cef35259b132f8fc926f1f8667df3bd44a235a2a

Authored by Braulio Bhavamitra
1 parent b904d553
Exists in fix_sign_up_form

Add basic support for specs

spec/fixtures 0 → 120000
... ... @@ -0,0 +1 @@
  1 +../test/fixtures
0 2 \ No newline at end of file
... ...
spec/spec_helper.rb 0 → 100644
... ... @@ -0,0 +1,25 @@
  1 +require_relative '../config/environment'
  2 +require 'rspec/rails'
  3 +
  4 +require_relative 'support/factories'
  5 +
  6 +require 'database_cleaner'
  7 +
  8 +RSpec.configure do |config|
  9 +
  10 + config.fixture_path = 'spec/fixtures'
  11 +
  12 + config.include Noosfero::Factory
  13 +
  14 + config.before(:suite) do
  15 + DatabaseCleaner.strategy = :truncation
  16 + DatabaseCleaner.clean_with :truncation
  17 + end
  18 + config.around(:each) do |example|
  19 + DatabaseCleaner.cleaning do
  20 + example.run
  21 + end
  22 + end
  23 +
  24 +end
  25 +
... ...
spec/support 0 → 120000
... ... @@ -0,0 +1 @@
  1 +../test/support
0 2 \ No newline at end of file
... ...