Sha256: 75244bba733a15017a99c0769c462198c58060cef23062f6fe17dfaf7f3e7a70

Contents?: true

Size: 534 Bytes

Versions: 62

Compression:

Stored size: 534 Bytes

Contents

require 'test_helper'

module Workarea
  class PingHomeBase
    class RequestTest < Workarea::TestCase
      def test_plugins_exclude_core_gems
        plugin_names = request_hash[:plugins].map { |plugin| plugin[:name] }
        refute_includes(plugin_names, "Admin")
        refute_includes(plugin_names, "Storefront")
      end

      def test_includes_ruby_version
        assert_equal(RUBY_VERSION, request_hash[:ruby_version])
      end

      private

      def request_hash
        Request.new.to_h
      end
    end
  end
end

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
workarea-core-3.5.27 test/lib/workarea/ping_home_base/request_test.rb
workarea-core-3.5.26 test/lib/workarea/ping_home_base/request_test.rb
workarea-core-3.4.45 test/lib/workarea/ping_home_base/request_test.rb
workarea-core-3.5.25 test/lib/workarea/ping_home_base/request_test.rb
workarea-core-3.5.23 test/lib/workarea/ping_home_base/request_test.rb
workarea-core-3.4.44 test/lib/workarea/ping_home_base/request_test.rb
workarea-core-3.5.22 test/lib/workarea/ping_home_base/request_test.rb
workarea-core-3.4.43 test/lib/workarea/ping_home_base/request_test.rb
workarea-core-3.5.21 test/lib/workarea/ping_home_base/request_test.rb
workarea-core-3.4.42 test/lib/workarea/ping_home_base/request_test.rb
workarea-core-3.5.20 test/lib/workarea/ping_home_base/request_test.rb
workarea-core-3.4.41 test/lib/workarea/ping_home_base/request_test.rb
workarea-core-3.5.19 test/lib/workarea/ping_home_base/request_test.rb
workarea-core-3.4.40 test/lib/workarea/ping_home_base/request_test.rb
workarea-core-3.5.18 test/lib/workarea/ping_home_base/request_test.rb
workarea-core-3.4.39 test/lib/workarea/ping_home_base/request_test.rb
workarea-core-3.5.17 test/lib/workarea/ping_home_base/request_test.rb
workarea-core-3.4.38 test/lib/workarea/ping_home_base/request_test.rb
workarea-core-3.5.16 test/lib/workarea/ping_home_base/request_test.rb
workarea-core-3.4.37 test/lib/workarea/ping_home_base/request_test.rb