require 'i18n/hygiene/config'

RSpec.describe I18n::Hygiene::Config do
  let(:config) { I18n::Hygiene::Config.new }

  describe "#exclude_files=" do
    it "sets exclude_files" do
      config.exclude_files = ["ignore.this"]
      expect(config.exclude_files).to eq ["ignore.this"]
    end
  end

  describe "#file_extensions=" do
    it "sets file_extensions" do
      config.file_extensions = ["rb"]
      expect(config.file_extensions).to eq ["rb"]
    end
  end

  describe "#primary_locale=" do
    it "sets primary_locale" do
      config.primary_locale = :en
      expect(config.primary_locale).to eq :en
    end
  end

  describe "#locales=" do
    it "sets locales" do
      config.locales = [:en]
      expect(config.locales).to eq [:en]
    end
  end

  describe "#directories=" do
    it "sets directories" do
      config.directories = ["app", "lib"]
      expect(config.directories).to eq ["app", "lib"]
    end
  end

  describe "#exclude_scopes=" do
    it "sets scopes to exclude" do
      config.exclude_scopes = [ :activerecord, :date, :datetime, :errors, :number, :support, :time ]
      expect(config.exclude_scopes).to eq [ :activerecord, :date, :datetime, :errors, :number, :support, :time ]
    end
  end
end
