Sha256: 5e663b13c11976d7ff95cbef369f537336946f1c96b4038d20ea0d218daed2e2

Contents?: true

Size: 526 Bytes

Versions: 4

Compression:

Stored size: 526 Bytes

Contents

require 'test_helper'

class ShopifyAppWhitelistTest < ActiveSupport::TestCase
  test 'is working' do
    assert_equal Module, ShopifyAppWhitelist.class
  end

  test 'adds configuration options to shopify_app' do
    vars = ShopifyApp.configuration.instance_variables

    assert vars.include?(:@whitelist)
    assert vars.include?(:@whitelist_redirect)
  end

  test 'adds concern to application controller' do
    assert ApplicationController._process_action_callbacks.find { |cb| cb.filter == :whitelist_check }
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
shopify_app_whitelist-2.0.0 test/shopify_app_whitelist_test.rb
shopify_app_whitelist-1.1.1 test/shopify_app_whitelist_test.rb
shopify_app_whitelist-1.1.0 test/shopify_app_whitelist_test.rb
shopify_app_whitelist-1.0.0 test/shopify_app_whitelist_test.rb