Sha256: 2a3e238810285f2e5d7ac20f2ddd1af1a1c84e1cf46a0aa7b0e3932c888d48f9
Contents?: true
Size: 1.02 KB
Versions: 1
Compression:
Stored size: 1.02 KB
Contents
require 'spec_helper' describe OpenConferenceWare::ProposalsHelper do describe "traversal" do before :each do add_all_helpers_to(view) @event = create :populated_event @proposal1 = proposal_for_event(@event) @proposal2 = proposal_for_event(@event) end describe "#next_proposal_path_from" do it "should return a link to the next proposal when it exists" do helper.next_proposal_path_from(@proposal1).should == view.proposal_path(@proposal2) end it "should return nil when this is the last proposal" do helper.next_proposal_path_from(@proposal2).should be_nil end end describe "#previous_proposal_path_from" do it "should return a link to the previous proposal when it exists" do helper.previous_proposal_path_from(@proposal2).should == view.proposal_path(@proposal1) end it "should return nil when this is the first proposal" do helper.previous_proposal_path_from(@proposal1).should be_nil end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
open_conference_ware-1.0.0.pre1 | spec/helpers/open_conference_ware/proposals_helper_spec.rb |