Sha256: b1f5688a611ea46bd7654666f892599678f14bb193f5369e93a70fa9d56c36ee
Contents?: true
Size: 979 Bytes
Versions: 2
Compression:
Stored size: 979 Bytes
Contents
require 'spec_helper' describe 'Language tree feature', js: true do let(:klingonian) { FactoryGirl.create(:klingonian) } let(:german_root) { FactoryGirl.create(:language_root_page) } let(:klingonian_root) { FactoryGirl.create(:language_root_page, :name => 'Klingonian', :language => klingonian) } before do german_root authorize_as_admin end context "in a multilangual environment" do before { klingonian_root } it "one should be able to switch the language tree" do visit('/admin/pages') page.select 'Klingonian', from: 'language_tree_select' page.should have_selector('#sitemap', text: 'Klingonian') end end context "with no language root page" do before { klingonian } it "it should display the form for creating language root" do visit('/admin/pages') page.select 'Klingonian', from: 'language_tree_select' page.should have_content('This language tree does not exist') end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
alchemy_cms-2.9.1 | spec/features/admin/language_tree_feature_spec.rb |
alchemy_cms-2.9.0 | spec/features/admin/language_tree_feature_spec.rb |