Sha256: 7b772bc6b1101f218264c2c33707a831091d2f56b7ccebcb9871f2348639b695
Contents?: true
Size: 1.02 KB
Versions: 1
Compression:
Stored size: 1.02 KB
Contents
require 'snippets_spec_helper' describe Radiant::AdminUI do let(:admin) do @admin = Radiant::AdminUI.new @admin.snippet = @admin.load_default_snippet_regions @admin end subject{ admin } its(:snippet){ should_not be_nil } its(:snippets){ should_not be_nil } context 'edit Region' do subject{ admin.snippet.edit } its(:main){ should == %w{ edit_header edit_form } } its(:form){ should == %w{ edit_title edit_content edit_filter } } its(:form_bottom){ should == %w{ edit_buttons edit_timestamp } } end context 'new Region' do subject{ admin.snippet.new } its(:main){ should == %w{ edit_header edit_form } } its(:form){ should == %w{ edit_title edit_content edit_filter } } its(:form_bottom){ should == %w{ edit_buttons edit_timestamp } } end subject{ admin.snippet.index } its(:top){ should == [] } its(:thead){ should == %w{ title_header actions_header } } its(:tbody){ should == %w{ title_cell actions_cell } } its(:bottom){ should == %w{ new_button } } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
radiant-snippets-extension-1.0.1 | spec/lib/radiant/admin_ui_spec.rb |