begin
  require "coveralls"
  Coveralls.wear!
rescue LoadError
end

RSpec.configure do |config|
  config.run_all_when_everything_filtered = true

  config.expect_with :rspec do |c|
    c.syntax = [:expect, :should]
  end

  config.mock_with :rspec do |c|
    c.syntax = [:expect, :should]
  end
end

require "paperclip/storage/ftp"

Paperclip.options[:log] = false

# Send coveralls report on one job per build only
ENV["TRAVIS_JOB_NUMBER"].to_s.end_with?(".1")
  begin
    require "coveralls"
    Coveralls.wear!
  rescue LoadError
  end
end

RSpec.configure do |config|
  config.run_all_when_everything_filtered = true

  config.expect_with :rspec do |c|
    c.syntax = [:expect, :should]
  end

  config.mock_with :rspec do |c|
    c.syntax = [:expect, :should]
  end
end

require "paperclip/storage/ftp"

Paperclip.options[:log] = false

Send coveralls report on one job per build only
Send coveralls report on one job per build only
