require 'spec_helper'

module RubyEventStore
  RSpec.describe 'no warnings' do
    specify do
      expect(aggregate_root_warnings).to eq([])
    end

    def aggregate_root_warnings
      warnings.select { |w| w =~ %r{lib/aggregate_root} }
    end

    def warnings
      `ruby -Ilib -w lib/aggregate_root.rb 2>&1`.split("\n")
    end
  end
end

require 'spec_helper'

module AggregateRoot
  RSpec.describe 'no warnings' do
    specify do
      expect(aggregate_root_warnings).to eq([])
    end

    def aggregate_root_warnings
      warnings.select { |w| w =~ %r{lib/aggregate_root} }
    end

    def warnings
      `ruby -Ilib -w lib/aggregate_root.rb 2>&1`.split("\n")
    end
  end
end

Rename enclosing module to match gem.
Rename enclosing module to match gem.
