Sha256: b1e051e5b628536419a44aaef48bcc56599914320f83ce7d1dcbacd83a55b952

Contents?: true

Size: 623 Bytes

Versions: 71

Compression:

Stored size: 623 Bytes

Contents

require_relative "test_helpers"

RSpec.configure do |config|
  config.include Agilibox::TestHelpers

  if defined?(FactoryBot)
    config.include FactoryBot::Syntax::Methods
  end

  if defined?(FactoryGirl)
    warn "Please replace FactoryGirl by FactoryBot"
    config.include FactoryGirl::Syntax::Methods
  end

  if defined?(Devise)
    config.include Devise::Test::ControllerHelpers, type: :controller
  end

  config.after(:each) { Timecop.return }
end

Shoulda::Matchers.configure do |config|
  config.integrate do |with|
    with.test_framework :rspec
    with.library :rails
  end
end

Zonebie.set_random_timezone

Version data entries

71 entries across 71 versions & 1 rubygems

Version Path
agilibox-2.0.0 lib/agilibox/rspec.rb
agilibox-1.11.0 lib/agilibox/rspec.rb
agilibox-1.10.5 lib/agilibox/rspec.rb
agilibox-1.10.2 lib/agilibox/rspec.rb
agilibox-1.10.1 lib/agilibox/rspec.rb
agilibox-1.10.0 lib/agilibox/rspec.rb
agilibox-1.9.20 lib/agilibox/rspec.rb
agilibox-1.9.19 lib/agilibox/rspec.rb
agilibox-1.9.18 lib/agilibox/rspec.rb
agilibox-1.9.17 lib/agilibox/rspec.rb
agilibox-1.9.16 lib/agilibox/rspec.rb
agilibox-1.9.15 lib/agilibox/rspec.rb
agilibox-1.9.14 lib/agilibox/rspec.rb
agilibox-1.9.13 lib/agilibox/rspec.rb
agilibox-1.9.12 lib/agilibox/rspec.rb
agilibox-1.9.11 lib/agilibox/rspec.rb
agilibox-1.9.10 lib/agilibox/rspec.rb
agilibox-1.9.9 lib/agilibox/rspec.rb
agilibox-1.9.8 lib/agilibox/rspec.rb
agilibox-1.9.7 lib/agilibox/rspec.rb