Sha256: 386c07c44e1a69f63ffa3f179b0ea2fe64d1cae1703ce9bee6dcb29140aef624
Contents?: true
Size: 832 Bytes
Versions: 9
Compression:
Stored size: 832 Bytes
Contents
require "rails_helper" RSpec.describe MailManager::BouncesController, :type => :routing do # context "routing when mounted" do # routes {TestApp::Application.routes.named_routes[:mail_manager].app.routes} # # it "routes to #index" do # binding.pry # expect(:get => "/mail_manager/bounces").to route_to("mail_manager/bounces#index") # end # it "routes to #show" do # expect(:get => "/mail_manager/bounces/1").to route_to("mail_manager/bounces#show", :id => "1") # end # end context "routing within engine" do routes {MailManager::Engine.routes} it "routes to #index" do expect(:get => "/bounces").to route_to("mail_manager/bounces#index") end it "routes to #show" do expect(:get => "/bounces/1").to route_to("mail_manager/bounces#show", :id => "1") end end end
Version data entries
9 entries across 9 versions & 1 rubygems