Sha256: 627b67fdf3343d7936f6836d421ab514ea40e7062f5e74e20d4c48d833033b09

Contents?: true

Size: 1.4 KB

Versions: 2

Compression:

Stored size: 1.4 KB

Contents

# encoding: UTF-8

require 'test_helper'

class I18nTest < ActiveSupport::IntegrationCase

  test 'renders in spanish' do
    step = :uno
    visit(i18n_path(step, :locale => :es))
    assert has_content?("Hey ya'll we're looking at: uno")
    assert has_link?('hello', :href => i18n_path(:dos))
    assert has_content?('uno step is the current step')      # current_step?
    assert true                                              # past_step?
    assert has_content?('dos step is a future step')         # future_step?
    assert has_content?('Ășltimo_paso step is a future step') # future_step?
    assert true                                              # previous_step?
    assert has_content?('dos step is the next step')         # next_step?
  end

  test 'renders in english' do
    step = :first
    visit(i18n_path(step, :locale => :en))
    assert has_content?("Hey ya'll we're looking at: first")
    assert has_link?('hello', :href => i18n_path(:second))

    assert has_content?('first step is the current step')   # current_step?
    assert true                                             # past_step?
    assert has_content?('last_step step is a future step')  # future_step?
    assert has_content?('second step is a future step')     # future_step?
    assert true                                             # previous_step?
    assert has_content?('second step is the next step')     # next_step?
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
wicked-0.6.0 test/integration/i18n_test.rb
wicked-0.5.0 test/integration/i18n_test.rb