Sha256: 882882481114223d5adea6092a1962503bc65c622dbd49488b89fa4bbf9c8e42

Contents?: true

Size: 638 Bytes

Versions: 6

Compression:

Stored size: 638 Bytes

Contents

# encoding: utf-8
require "spec_helper"

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

  it "should let me edit a translation", :js => true do
    visit root_path(:en)

    # We need this to identify the translation we want to change
    bip_id = ""
    within("table#results tbody tr:first") do
      bip_id = page.all("span.best_in_place").first[:id]
    end
    bip_id = bip_id.scan(/translation_\d+/).first

    bip_area bip_id, :value, "New value"


    visit root_path(:en)
    within("table#results tbody tr:first") do
      page.should have_content("New value")
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

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