Sha256: ada10565accaa7116482f1063e8e91b22003b1bacf82ac0423e85e931d17b9a9

Contents?: true

Size: 451 Bytes

Versions: 6

Compression:

Stored size: 451 Bytes

Contents

describe "D3 coverage" do
  # Test code is here because opal-repl doesn't support aggregate_failures mode
  native_methods = `Opal.hash(window.d3)`.keys.sort
  nice_methods = native_methods.map{|m| m.gsub(/([a-z])(?=[A-Z0-9])/, "\\1_").downcase }

  # format conflict with base ruby
  nice_methods.each do |method|
    it method do
      if D3.respond_to?(method)
        # OK
      else
        skip "not implemented yet"
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
hyper-d3-1.0.0.lap28 spec/coverage_spec.rb
hyper-d3-1.0.0.lap27 spec/coverage_spec.rb
hyper-d3-1.0.0.lap26 spec/coverage_spec.rb
hyper-d3-1.0.0.lap25 spec/coverage_spec.rb
hyper-d3-1.0.0.lap24 spec/coverage_spec.rb
hyper-d3-1.0.0.lap23 spec/coverage_spec.rb