Sha256: 4fbcdba4dc3e2fb51d24d4aec80d60202b96751ea13f80e5bc2afd7f85994e72

Contents?: true

Size: 815 Bytes

Versions: 3

Compression:

Stored size: 815 Bytes

Contents

require 'spec_helper'

describe "open_conference_ware/session_types/edit.html.erb" do
  include OpenConferenceWare::SessionTypesHelper

  before(:each) do
    @event = stub_current_event!
    @session_type = stub_model(SessionType,
      event: @event
    )
    assign(:session_type, @session_type)
  end

  it "should render edit form" do
    render

    rendered.should have_selector("form[action='#{OpenConferenceWare.mounted_path(event_session_type_path(@event, @session_type))}'][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

3 entries across 3 versions & 1 rubygems

Version Path
open_conference_ware-1.0.0.pre4 spec/views/open_conference_ware/session_types/edit.html.erb_spec.rb
open_conference_ware-1.0.0.pre3 spec/views/open_conference_ware/session_types/edit.html.erb_spec.rb
open_conference_ware-1.0.0.pre2 spec/views/open_conference_ware/session_types/edit.html.erb_spec.rb