Sha256: ef6738b453e281a26024ca9e04ac18cfd7ef7f0d133c3a1691de37017e7e757f

Contents?: true

Size: 509 Bytes

Versions: 9

Compression:

Stored size: 509 Bytes

Contents

require 'spec_helper'

feature "In order to translate resource As system user I want to switch from original resource to translations" do

  scenario "As user in resource create form I see language switch and current language is active and I can switch to other languages" do
    visit "/lolita/posts/new"
    language_selector_text = page.find(".tab-language-switch").text
    ::I18n.available_locales.each do |locale|
      language_selector_text.should match(/#{locale.to_s.capitalize}/)
    end
  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
lolita-translation-0.8.3 spec/features/record_language_switch_spec.rb
lolita-translation-0.8.2 spec/features/record_language_switch_spec.rb
lolita-translation-0.8.1 spec/features/record_language_switch_spec.rb
lolita-translation-0.8.0 spec/features/record_language_switch_spec.rb
lolita-translation-0.7.4 spec/features/record_language_switch_spec.rb
lolita-translation-0.7.3 spec/features/record_language_switch_spec.rb
lolita-translation-0.7.2 spec/features/record_language_switch_spec.rb
lolita-translation-0.7.1 spec/features/record_language_switch_spec.rb
lolita-translation-0.7.0 spec/features/record_language_switch_spec.rb