Sha256: 98c0ba496cbd19bd3ab7a004c27c8308e8699ec667f3791debb79863e3929eeb
Contents?: true
Size: 828 Bytes
Versions: 5
Compression:
Stored size: 828 Bytes
Contents
require 'test_helper' require 'vedeu/output/view' module Vedeu describe View do describe '.render' do it 'returns when the type is :erb' do skip View.render(:erb, '').must_equal('') end it 'returns when the type is :json' do skip View.render(:json, '').must_equal('') end it 'returns when the type is :raw' do skip View.render(:raw, '').must_equal('') end it 'returns when the type is :menu' do skip View.render(:menu, '').must_equal('') end it 'returns when the type is not set' do proc { View.render(nil, '') }.must_raise(KeyError) end it 'returns when the type is not recognised' do proc { View.render(:unknown, '') }.must_raise(KeyError) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems