Sha256: 2494dcb86ff81e070252746649ab9a731f03f2b23dc6de18c9f1abc6d50253de

Contents?: true

Size: 392 Bytes

Versions: 12

Compression:

Stored size: 392 Bytes

Contents

require './spec/spec_helper'


describe Constraint do
  
  subject do
    Constraint.new(
      "RuleValue" => 1000000.0,
      "Value" => 1000001.0,
      "RuleFieldValue" => 1.0,
      "RuleField" => "ListPrice",
      "RuleName" => "MaxValue")
  end
  
  it "should print to string" do
    expect(subject.to_s).to eq("MaxValue: Field(ListPrice,1.0) Value(1000000.0,1000001.0)")
  end

end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
spark_api-1.6.3 spec/unit/spark_api/models/constraint_spec.rb
spark_api-1.6.2 spec/unit/spark_api/models/constraint_spec.rb
spark_api-1.6.1 spec/unit/spark_api/models/constraint_spec.rb
spark_api-1.5.7 spec/unit/spark_api/models/constraint_spec.rb
spark_api-1.6.0 spec/unit/spark_api/models/constraint_spec.rb
spark_api-1.5.6 spec/unit/spark_api/models/constraint_spec.rb
spark_api-1.5.5 spec/unit/spark_api/models/constraint_spec.rb
spark_api-1.5.4 spec/unit/spark_api/models/constraint_spec.rb
spark_api-1.5.3 spec/unit/spark_api/models/constraint_spec.rb
spark_api-1.5.2 spec/unit/spark_api/models/constraint_spec.rb
spark_api-1.5.1 spec/unit/spark_api/models/constraint_spec.rb
spark_api-1.5.0 spec/unit/spark_api/models/constraint_spec.rb