Sha256: 928da025280f01ea38e9b8aa7a500646b5668fd0bd2cfeef9d856b7d385deaf1
Contents?: true
Size: 681 Bytes
Versions: 1
Compression:
Stored size: 681 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
open_conference_ware-1.0.0.pre1 | spec/views/open_conference_ware/tracks/new.html.erb_spec.rb |