Sha256: 259e582f44d41bf22d08a3f03efe3a770356a30e5180e6945754825730f997b6

Contents?: true

Size: 479 Bytes

Versions: 13

Compression:

Stored size: 479 Bytes

Contents

# frozen_string_literal: true

require "spout/tests/json_helper"

module Spout
  module Tests
    module DomainSpecified
      Dir.glob("variables/**/*.json").each do |file|
        if json_value(file, :type) == "choices"
          define_method("test_domain_specified:"+file) do
            domain_name = json_value(file, :domain)
            assert domain_name != nil, "Variables of type choices need to specify a domain."
          end
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
spout-1.0.0 lib/spout/tests/domain_specified.rb
spout-1.0.0.beta3 lib/spout/tests/domain_specified.rb
spout-1.0.0.beta2 lib/spout/tests/domain_specified.rb
spout-1.0.0.beta1 lib/spout/tests/domain_specified.rb
spout-0.14.1 lib/spout/tests/domain_specified.rb
spout-0.14.0 lib/spout/tests/domain_specified.rb
spout-0.14.0.rc lib/spout/tests/domain_specified.rb
spout-0.14.0.beta3 lib/spout/tests/domain_specified.rb
spout-0.14.0.beta2 lib/spout/tests/domain_specified.rb
spout-0.14.0.beta1 lib/spout/tests/domain_specified.rb
spout-0.13.0 lib/spout/tests/domain_specified.rb
spout-0.13.0.beta2 lib/spout/tests/domain_specified.rb
spout-0.13.0.beta1 lib/spout/tests/domain_specified.rb