Fixing test

This commit is contained in:
Thorsten Claus 2021-04-09 12:52:55 +02:00
parent ddee980426
commit 34d9d9c3ee

View file

@ -24,7 +24,7 @@ describe StreamHelper, type: :helper do
allow(helper).to receive(:current_page?).and_return(false)
expect(helper).to receive(:current_page?).with(:local_public_stream).and_return(true)
allow(helper).to receive(:controller).and_return(build_controller(StreamsController))
expect(helper.next_page_path).to include "/local-public"
expect(helper.next_page_path).to include local_public_stream_path
end
it "works for stream page when current page is stream" do