Sha256: 6b617d6557aeaac0a7b21d43138b919bcd75b86ad39819495c75712457047759
Contents?: true
Size: 907 Bytes
Versions: 6
Compression:
Stored size: 907 Bytes
Contents
require 'test_helper' class ConfigurationTest < ActiveSupport::TestCase setup do ShopifyApp.configuration = nil end test "configure" do ShopifyApp.configure do |config| config.embedded_app = true end assert_equal true, ShopifyApp.configuration.embedded_app end test "routes enabled" do assert_equal true, ShopifyApp.configuration.routes_enabled? end test "disable routes" do ShopifyApp.configure do |config| config.routes = false end assert_equal false, ShopifyApp.configuration.routes_enabled? end test "defaults to myshopify_domain" do assert_equal "myshopify.com", ShopifyApp.configuration.myshopify_domain end test "can set myshopify_domain" do ShopifyApp.configure do |config| config.myshopify_domain = 'myshopify.io' end assert_equal "myshopify.io", ShopifyApp.configuration.myshopify_domain end end
Version data entries
6 entries across 6 versions & 1 rubygems