spec/helpers_spec.rb in evil-front-rails-0.1.0 vs spec/helpers_spec.rb in evil-front-rails-0.2.0

- old
+ new

@@ -24,9 +24,29 @@ response.body.should == '<b><span class="quotes">«&lt;ф&gt;»</span></b>' end end + describe 'typograph_by_locale' do + after do + I18n.locale = :en + end + + it 'accepts blocks' do + get :typograph_by_locale + response.should be_success + response.body.should == '“a”' + end + + it 'returns origin blocks on unknown locale' do + I18n.locale = :fr + get :typograph_by_locale + response.should be_success + response.body.should == '&quot;a&quot;' + end + + end + describe 'head_tag' do before do @env = Rails.env end