<NME> proposals_helper_spec.rb
<BEF> require 'spec_helper'

describe OpenConferenceWare::ProposalsHelper do
  describe "traversal" do
    before do
      @event = create :populated_event
      @proposal1 = proposal_for_event(@event)
      @proposal2 = proposal_for_event(@event)
      @proposal2 = proposal_for_event(@event)

    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 == proposal_path(@proposal2)
      end

      it "should return nil when this is the last proposal" do

        it "should return nil when this is the last proposal" do
          helper.next_proposal_path_from(@proposal2).should be_nil

    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 == proposal_path(@proposal1)
      end

      it "should return nil when this is the first proposal" 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
end

<MSG> Work around proposal_path not being present in ProposalsHelperSpec

<DFF> @@ -2,7 +2,8 @@ require 'spec_helper'
 
 describe OpenConferenceWare::ProposalsHelper do
   describe "traversal" do
-    before do
+    before :each do
+      add_all_helpers_to(view)
       @event = create :populated_event
       @proposal1 = proposal_for_event(@event)
       @proposal2 = proposal_for_event(@event)
@@ -10,7 +11,7 @@ describe OpenConferenceWare::ProposalsHelper do
 
     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 == proposal_path(@proposal2)
+        helper.next_proposal_path_from(@proposal1).should == view.proposal_path(@proposal2)
       end
 
       it "should return nil when this is the last proposal" do
@@ -20,7 +21,7 @@ describe OpenConferenceWare::ProposalsHelper do
 
     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 == proposal_path(@proposal1)
+        helper.previous_proposal_path_from(@proposal2).should == view.proposal_path(@proposal1)
       end
 
       it "should return nil when this is the first proposal" do

{'commit': 'diff --git a/spec/helpers/open_conference_ware/proposals_helper_spec.rb b/spec/helpers/open_conference_ware/proposals_helper_spec.rb\nindex 10fd9588..b7143ecf 100644\n--- a/spec/helpers/open_conference_ware/proposals_helper_spec.rb\n+++ b/spec/helpers/open_conference_ware/proposals_helper_spec.rb\n@@ -2,7 +2,8 @@ require \'spec_helper\'\n \n describe OpenConferenceWare::ProposalsHelper do\n   describe "traversal" do\n-    before do\n+    before :each do\n+      add_all_helpers_to(view)\n       @event = create :populated_event\n       @proposal1 = proposal_for_event(@event)\n       @proposal2 = proposal_for_event(@event)\n@@ -10,7 +11,7 @@ describe OpenConferenceWare::ProposalsHelper do\n \n     describe "#next_proposal_path_from" do\n       it "should return a link to the next proposal when it exists" do\n-        helper.next_proposal_path_from(@proposal1).should == proposal_path(@proposal2)\n+        helper.next_proposal_path_from(@proposal1).should == view.proposal_path(@proposal2)\n       end\n \n       it "should return nil when this is the last proposal" do\n@@ -20,7 +21,7 @@ describe OpenConferenceWare::ProposalsHelper do\n \n     describe "#previous_proposal_path_from" do\n       it "should return a link to the previous proposal when it exists" do\n-        helper.previous_proposal_path_from(@proposal2).should == proposal_path(@proposal1)\n+        helper.previous_proposal_path_from(@proposal2).should == view.proposal_path(@proposal1)\n       end\n \n       it "should return nil when this is the first proposal" do\n', 'commit_subject': 'Work around proposal_path not being present in ProposalsHelperSpec', 'repo_name': 'osbridge/openconferenceware', 'committer': {'name': 'Reid Beels', 'email': '1d6e1cf70ec6f9ab28d3ea4b27a49a77654d370e@reidbeels.com', 'time_sec': '1386838683', 'tz_offset': '-480', 'date': {'seconds': '1386838683'}}, 'commit_tree': '906c181ae48c2fd8217a4e5af2ff69a8dd4b9442', 'commit_message': 'Work around proposal_path not being present in ProposalsHelperSpec\n', 'language_name': 'Shell', 'license': 'mit', 'hunks': '@@ -2,7 +2,8 @@ require \'spec_helper\'\n \n describe OpenConferenceWare::ProposalsHelper do\n   describe "traversal" do\n-    before do\n+    before :each do\n+      add_all_helpers_to(view)\n       @event = create :populated_event\n       @proposal1 = proposal_for_event(@event)\n       @proposal2 = proposal_for_event(@event)\n@@ -10,7 +11,7 @@ describe OpenConferenceWare::ProposalsHelper do\n \n     describe "#next_proposal_path_from" do\n       it "should return a link to the next proposal when it exists" do\n-        helper.next_proposal_path_from(@proposal1).should == proposal_path(@proposal2)\n+        helper.next_proposal_path_from(@proposal1).should == view.proposal_path(@proposal2)\n       end\n \n       it "should return nil when this is the last proposal" do\n@@ -20,7 +21,7 @@ describe OpenConferenceWare::ProposalsHelper do\n \n     describe "#previous_proposal_path_from" do\n       it "should return a link to the previous proposal when it exists" do\n-        helper.previous_proposal_path_from(@proposal2).should == proposal_path(@proposal1)\n+        helper.previous_proposal_path_from(@proposal2).should == view.proposal_path(@proposal1)\n       end\n \n       it "should return nil when this is the first proposal" do\n', 'addition_count': 4, 'deletion_count': 3, 'src_file': 'a/spec/helpers/open_conference_ware/proposals_helper_spec.rb', 'tgt_file': 'b/spec/helpers/open_conference_ware/proposals_helper_spec.rb', 'file_extension': '.rb', 'before_file': 'require \'spec_helper\'\n\ndescribe OpenConferenceWare::ProposalsHelper do\n  describe "traversal" do\n    before do\n      @event = create :populated_event\n      @proposal1 = proposal_for_event(@event)\n      @proposal2 = proposal_for_event(@event)\n      @proposal2 = proposal_for_event(@event)\n\n    describe "#next_proposal_path_from" do\n      it "should return a link to the next proposal when it exists" do\n        helper.next_proposal_path_from(@proposal1).should == proposal_path(@proposal2)\n      end\n\n      it "should return nil when this is the last proposal" do\n\n        it "should return nil when this is the last proposal" do\n          helper.next_proposal_path_from(@proposal2).should be_nil\n\n    describe "#previous_proposal_path_from" do\n      it "should return a link to the previous proposal when it exists" do\n        helper.previous_proposal_path_from(@proposal2).should == proposal_path(@proposal1)\n      end\n\n      it "should return nil when this is the first proposal" do\n          helper.previous_proposal_path_from(@proposal2).should == view.proposal_path(@proposal1)\n        end\n\n        it "should return nil when this is the first proposal" do\n          helper.previous_proposal_path_from(@proposal1).should be_nil\n        end\n      end\n    end\n  end\nend\n', 'message': 'Work around proposal_path not being present in ProposalsHelperSpec\n', 'author_name': 'Reid Beels', 'lang': 'rb'}