Sha256: b4ae245b605c61a836c4055e93034534598cb6a3f8b1ef305b635745e81b2320

Contents?: true

Size: 794 Bytes

Versions: 1

Compression:

Stored size: 794 Bytes

Contents

require 'spec_helper'

describe "open_conference_ware/session_types/new.html.erb" do
  include OpenConferenceWare::SessionTypesHelper
  
  before(:each) do
    @session_type = stub_model(SessionType).as_new_record
    assign(:session_type, @session_type)

    @event = stub_current_event!
  end

  it "should render new form" do
    render
    
    rendered.should have_selector("form[action='#{OpenConferenceWare.mounted_path(event_session_types_path(@event))}'][method=post]") do |node|
      node.should have_selector("input#session_type_title[name='session_type[title]']")
      node.should have_selector("textarea#session_type_description[name='session_type[description]']")
      node.should have_selector("input#session_type_duration[name='session_type[duration]']")
    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/session_types/new.html.erb_spec.rb