Sha256: 6f6075c507ba0c25a54e6f10f8da2a3da20bbc05de82f9000d3577138ba0cf8e
Contents?: true
Size: 804 Bytes
Versions: 10
Compression:
Stored size: 804 Bytes
Contents
require 'test_helper' class SessionsRoutesTest < ActionController::TestCase setup do @routes = ShopifyApp::Engine.routes ShopifyApp::SessionRepository.storage = InMemorySessionStore ShopifyApp.configuration = nil end test "login routes to sessions#new" do assert_routing '/login', { controller: "sessions", action: "new" } end test "post login routes to sessions#create" do assert_routing({method: 'post', path: '/login'}, { controller: "sessions", action: "create" }) end test "auth_shopify_callback routes to sessions#callback" do assert_routing '/auth/shopify/callback', { controller: "sessions", action: "callback" } end test "logout routes to sessions#destroy" do assert_routing '/logout', { controller: "sessions", action: "destroy" } end end
Version data entries
10 entries across 10 versions & 1 rubygems