diff options
author | Ruben Davila <rdavila84@gmail.com> | 2017-05-05 02:44:19 +0300 |
---|---|---|
committer | Ruben Davila <rdavila84@gmail.com> | 2017-05-05 02:44:19 +0300 |
commit | b396668ec55fb866ef578e5f0e60df8b13519613 (patch) | |
tree | 30c6fc7a82dec48c4f4bc38a768ada1caaac1b5e /spec/features/cycle_analytics_spec.rb | |
parent | f7b7a520920204d1a2864af6d911ef9dc8c2df6b (diff) |
Add CHANGELOG entry, some specs and locale file for German.
Diffstat (limited to 'spec/features/cycle_analytics_spec.rb')
-rw-r--r-- | spec/features/cycle_analytics_spec.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/spec/features/cycle_analytics_spec.rb b/spec/features/cycle_analytics_spec.rb index b93275c330b..7c9d522273b 100644 --- a/spec/features/cycle_analytics_spec.rb +++ b/spec/features/cycle_analytics_spec.rb @@ -62,6 +62,25 @@ feature 'Cycle Analytics', feature: true, js: true do expect_issue_to_be_present end end + + context "when my preferred language is Spanish" do + before do + user.update_attribute(:preferred_language, 'es') + + project.team << [user, :master] + login_as(user) + visit namespace_project_cycle_analytics_path(project.namespace, project) + wait_for_ajax + end + + it 'shows the content in Spanish' do + expect(page).to have_content('Estado del Pipeline') + end + + it 'resets the language to English' do + expect(I18n.locale).to eq(:en) + end + end end context "as a guest" do |