Sha256: 267c3a9b7d36228128728e2db510a4a386f03d6fd9c192aa5aaa5855ea947982
Contents?: true
Size: 812 Bytes
Versions: 24
Compression:
Stored size: 812 Bytes
Contents
describe 'spotlight/pages/new', type: :view do let(:exhibit) { stub_model(Spotlight::Exhibit) } before do assign(:page, stub_model(Spotlight::FeaturePage, exhibit: exhibit).as_new_record) allow(view).to receive_messages(featured_images_path: '/foo', available_index_fields: [], available_view_fields: []) end it 'renders new page form' do render # Run the generator again with the --webrat flag if you want to use webrat matchers assert_select 'form[action=?][method=?]', spotlight.exhibit_feature_pages_path(exhibit), 'post' do assert_select 'input#feature_page_title[name=?]', 'feature_page[title]' assert_select 'textarea#feature_page_content[name=?]', 'feature_page[content]' end end end
Version data entries
24 entries across 24 versions & 1 rubygems