Sha256: 84a931cf4225550b82a4fda0a16c40d9ba7ba26c8a13356cbcbb93e147e8d0f2

Contents?: true

Size: 935 Bytes

Versions: 6

Compression:

Stored size: 935 Bytes

Contents

# encoding: utf-8
require "spec_helper"

describe "Stale translations" do
  before(:all) { User.create!  }
  before { load_integration_data }

  it "should show me nothing when I'm in english language" do
    visit stale_translations_path(:en)
    page.should have_content("There can't be stale translations for the main language")
  end

  it "should show me the recently modified translations in english", :js => true do
    visit root_path(:en)
    change_translation("table#results tbody tr:first", "New comments text")

    visit stale_translations_path(:es)
    page.all("table#stale_translations tbody tr").size.should == 1
  end

  it "should not show anything if I update a 'es' translation", :js => true do
    visit root_path(:es)
    change_translation("table#results tbody tr:first", "New comments text")

    visit stale_translations_path(:es)
    page.all("table#stale_translations tbody tr").size.should == 0
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
interpret-1.1.2 spec/integration/stale_translations_spec.rb
interpret-1.1.1 spec/integration/stale_translations_spec.rb
interpret-1.1.0 spec/integration/stale_translations_spec.rb
interpret-1.0.2 spec/integration/stale_translations_spec.rb
interpret-1.0.1 spec/integration/stale_translations_spec.rb
interpret-1.0.0 spec/integration/stale_translations_spec.rb