Sha256: f641d4ad421e034fd23df8528c1b46c153be0602236cfa0ba8c2de79abc85186

Contents?: true

Size: 450 Bytes

Versions: 33

Compression:

Stored size: 450 Bytes

Contents

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

33 entries across 33 versions & 1 rubygems

Version Path
spout-0.11.0 lib/spout/tests/domain_specified.rb
spout-0.11.0.rc lib/spout/tests/domain_specified.rb
spout-0.11.0.beta3 lib/spout/tests/domain_specified.rb
spout-0.11.0.beta2 lib/spout/tests/domain_specified.rb
spout-0.11.0.beta1 lib/spout/tests/domain_specified.rb
spout-0.10.2 lib/spout/tests/domain_specified.rb
spout-0.10.1 lib/spout/tests/domain_specified.rb
spout-0.10.0 lib/spout/tests/domain_specified.rb
spout-0.10.0.rc3 lib/spout/tests/domain_specified.rb
spout-0.10.0.rc2 lib/spout/tests/domain_specified.rb
spout-0.10.0.rc lib/spout/tests/domain_specified.rb
spout-0.10.0.beta10 lib/spout/tests/domain_specified.rb
spout-0.10.0.beta9 lib/spout/tests/domain_specified.rb
spout-0.10.0.beta8 lib/spout/tests/domain_specified.rb
spout-0.10.0.beta7 lib/spout/tests/domain_specified.rb
spout-0.10.0.beta6 lib/spout/tests/domain_specified.rb
spout-0.10.0.beta4 lib/spout/tests/domain_specified.rb
spout-0.10.0.beta3 lib/spout/tests/domain_specified.rb
spout-0.10.0.beta2 lib/spout/tests/domain_specified.rb
spout-0.10.0.beta1 lib/spout/tests/domain_specified.rb