Sha256: 123234b26bcbbd2a7c4d3b9f10cc4f459a7d24a4cbb4dc8cca9231d27a9403a2
Contents?: true
Size: 1.03 KB
Versions: 6
Compression:
Stored size: 1.03 KB
Contents
require 'spec_helper' describe Massimo::Helpers do it { should include(Padrino::Helpers::OutputHelpers) } it { should include(Padrino::Helpers::TagHelpers) } it { should include(Padrino::Helpers::AssetTagHelpers) } it { should include(Padrino::Helpers::FormHelpers) } it { should include(Padrino::Helpers::FormatHelpers) } it { should include(Padrino::Helpers::NumberHelpers) } it { should include(Padrino::Helpers::TranslationHelpers) } let(:helpers) { Object.new.extend(Massimo::Helpers) } describe '#render' do it 'renders a view with the given locals' do with_file 'views/partial.haml', '= local' do helpers.render('partial', :local => 'Local').should == "Local\n" end end end describe '#site' do it 'returns the current site instance' do site = Massimo::Site.new helpers.site.should === site end end describe '#config' do it 'returns the current site configuration' do site = Massimo::Site.new helpers.config.should === site.config end end end
Version data entries
6 entries across 6 versions & 1 rubygems