Sha256: b0faa8e6a6fc90d29f2ec84e272acf69e18144af8b0de40136d9ec083dbe4f04

Contents?: true

Size: 504 Bytes

Versions: 15

Compression:

Stored size: 504 Bytes

Contents

require "spec_helper"

describe I18n::Backend::Weeler::Dedupe do

  describe "#dedupe" do

    context "empty db" do
      before(:each) do
        3.times { I18n::Backend::Weeler::Translation.create(locale: :en, key: "weeler.dublicate") }
        I18n::Backend::Weeler::Translation.dedupe
      end

      it "translation stores all translation in each locale" do
        expect(I18n::Backend::Weeler::Translation.locale(:en).where(key: "weeler.dublicate").size).to eq(1)
      end

    end

  end

end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
weeler-2.1.0 spec/weeler/i18n/backend/weeler/dedupe_spec.rb
weeler-2.0.1 spec/weeler/i18n/backend/weeler/dedupe_spec.rb
weeler-2.0.0 spec/weeler/i18n/backend/weeler/dedupe_spec.rb
weeler-1.6.0 spec/weeler/i18n/backend/weeler/dedupe_spec.rb
weeler-1.5.4 spec/weeler/i18n/backend/weeler/dedupe_spec.rb
weeler-1.5.2 spec/weeler/i18n/backend/weeler/dedupe_spec.rb
weeler-1.5.1 spec/weeler/i18n/backend/weeler/dedupe_spec.rb
weeler-1.4.0 spec/weeler/i18n/backend/weeler/dedupe_spec.rb
weeler-1.2.0 spec/weeler/i18n/backend/weeler/dedupe_spec.rb
weeler-1.1.0 spec/weeler/i18n/backend/weeler/dedupe_spec.rb
weeler-1.0.4 spec/weeler/i18n/backend/weeler/dedupe_spec.rb
weeler-1.0.3 spec/weeler/i18n/backend/weeler/dedupe_spec.rb
weeler-1.0.2 spec/weeler/i18n/backend/weeler/dedupe_spec.rb
weeler-1.0.1 spec/weeler/i18n/backend/weeler/dedupe_spec.rb
weeler-1.0.0 spec/weeler/i18n/backend/weeler/dedupe_spec.rb