Sha256: 9f8d1f3dfcbe81037efa0ea13005c0c1d2d2745d7c7b6912702ff1d3851e1409
Contents?: true
Size: 565 Bytes
Versions: 1
Compression:
Stored size: 565 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.pre1 | spec/views/open_conference_ware/tracks/show.html.erb_spec.rb |