Sha256: 28d9e7785ada327b8e4ee2ae3b54ad01b6b432ec065a77d2790d442092f15bba

Contents?: true

Size: 564 Bytes

Versions: 1

Compression:

Stored size: 564 Bytes

Contents

require 'spec_helper'

describe "open_conference_ware/tracks/show.html.erb" do
  include OpenConferenceWare::TracksHelper
  before(:each) do
    @event = stub_current_event!(controller: view)
    @track = stub_model(Track,
      title: "value for title",
      event_id: 1,
      description: "value for description"
    )
    assign(:track, @track)

    view.stub(:schedule_visible?).and_return(true)
    view.stub(:admin?).and_return(false)
  end

  it "should render attributes in <p>" do
    render
    rendered.should match(/value for description/)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
open_conference_ware-1.0.0.pre2 spec/views/open_conference_ware/tracks/show.html.erb_spec.rb