Sha256: e70e376e638b87d9a6313562a773c7d14ee35ce4dde456932751f3d27b3589c3
Contents?: true
Size: 946 Bytes
Versions: 18
Compression:
Stored size: 946 Bytes
Contents
require 'test_helper' module PointlessFeedback class ApplicationHelperTest < ActionDispatch::IntegrationTest describe "main app's named routes" do class MainAppApplicationHelperMock def foo_path '/foo' end def foo_url 'http://host/foo' end end class PointlessFeedbackApplicationHelperMock include PointlessFeedback::ApplicationHelper def main_app MainAppApplicationHelperMock.new end end let(:raw_helper) { PointlessFeedbackApplicationHelperMock.new } it "outputs named path from the main app" do raw_helper.foo_path.must_equal '/foo' end it "outputs named url from the main app" do raw_helper.foo_url.must_equal 'http://host/foo' end it "raises exception with other routes" do proc{ raw_helper.lolwut_path }.must_raise NoMethodError end end end end
Version data entries
18 entries across 18 versions & 1 rubygems