Sha256: 6c1020ee15f459e216ba5f4770f92de9450a479bf2b867d255e1ace3b099e686
Contents?: true
Size: 658 Bytes
Versions: 4
Compression:
Stored size: 658 Bytes
Contents
require 'spec_helper' module Spotlight describe "spotlight/pages/new" do let(:exhibit) { stub_model(Exhibit) } before do assign(:page, stub_model(FeaturePage, exhibit: exhibit).as_new_record) 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 end
Version data entries
4 entries across 4 versions & 1 rubygems