# -*- coding: utf-8 -*-

unless ENV['CI']
  require 'simplecov'
  SimpleCov.start do
    add_filter 'spec'
    add_group 'Agharta' do |source|
      source.filename =~ /lib\/agharta(|\/[^\/]+).rb/
    end
    add_group 'Tasks',      'lib/agharta/tasks'
    add_group 'UsetStream', 'lib/agharta/user_stream'
    add_group 'Handlers' do |source|
      source.filename =~ /lib\/agharta\/handlers/ ||
        source.filename =~ /lib\/agharta\/notifies/ ||
        source.filename =~ /lib\/agharta\/stores/
    end
  end
end

require 'agharta'
require 'rspec'

RSpec.configure do |config|
  config.mock_with :rspec
end

# -*- coding: utf-8 -*-

unless ENV['CI']
  require 'simplecov'
  SimpleCov.start do
    add_filter 'spec'
    add_group 'Agharta' do |source|
      source.filename =~ /lib\/agharta(|\/[^\/]+).rb/
    end
    add_group 'Tasks',      'lib/agharta/tasks'
    add_group 'UsetStream', 'lib/agharta/user_stream'
    add_group 'Handlers' do |source|
      source.filename =~ /lib\/agharta\/handlers/ ||
        source.filename =~ /lib\/agharta\/notifies/ ||
        source.filename =~ /lib\/agharta\/stores/
    end
    add_group 'Extension', 'lib/agharta/core_ext'
  end
end

require 'agharta'
require 'rspec'

RSpec.configure do |config|
  config.mock_with :rspec
end

Add extension group at simplecov.
Add extension group at simplecov.
