Sha256: b2df29fc6605e99cc2ff5d9637f74ced6c93238e24549d58157220c7f2c1448f
Contents?: true
Size: 673 Bytes
Versions: 3
Compression:
Stored size: 673 Bytes
Contents
require 'spec_helper' describe "open_conference_ware/tracks/new.html.erb" do include OpenConferenceWare::TracksHelper before(:each) do @event = stub_current_event! @track = stub_model(Track, title: "value for title", event_id: 1 ).as_new_record assign(:track, @track) end it "should render new form" do render rendered.should have_selector("form[action='#{OpenConferenceWare.mounted_path(event_tracks_path(@event))}'][method=post]") do |node| node.should have_selector("input#track_title[name='track[title]']") node.should have_selector("textarea#track_description[name='track[description]']") end end end
Version data entries
3 entries across 3 versions & 1 rubygems