Sha256: d7cc1182e3335cd0bbf2d65b3f7069709bc5db80eabc8a850d3175b43e4a3cb4
Contents?: true
Size: 1.07 KB
Versions: 12
Compression:
Stored size: 1.07 KB
Contents
require File.expand_path(File.dirname(__FILE__) + '/../../snippets_spec_helper.rb') 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
12 entries across 12 versions & 2 rubygems