spec/hyper_i18n_spec.rb in hyper-i18n-1.0.alpha1.5 vs spec/hyper_i18n_spec.rb in hyper-i18n-1.0.alpha1.6
- old
+ new
@@ -20,10 +20,10 @@
end
end
end
end
[['component rendering', :client_only], ['prerendering', :server_only]].each do |mode, flag|
- it "will translate during #{mode}" do
+ it "will translate during #{mode}", prerendering_on: flag == :server_only do
mount 'Components::TestComponent', {}, render_on: flag
expect(find('#tp1')).to have_content('I am a key')
expect(find('#tp2')).to have_content('Hello world')
expect(find('#tp3')).to have_content(::I18n.l(Time.parse('1/1/2018 12:45')))
expect(find('#tp4')).to have_content(::I18n.l(Time.parse('1/1/2018 12:45'), format: '%B %d, %Y at %l:%M %P'))