Sha256: b07c062dc832a9f7b6ab90d173c1fc6f49280df7f3b58b6abd1fe398e6ae19f0

Contents?: true

Size: 388 Bytes

Versions: 64

Compression:

Stored size: 388 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
    subject.to_s.should eq("MaxValue: Field(ListPrice,1.0) Value(1000000.0,1000001.0)")
  end

end

Version data entries

64 entries across 64 versions & 2 rubygems

Version Path
spark_api-1.4.34 spec/unit/spark_api/models/constraint_spec.rb
spark_api-1.4.32 spec/unit/spark_api/models/constraint_spec.rb
spark_api-1.4.31 spec/unit/spark_api/models/constraint_spec.rb
spark_api-1.4.29 spec/unit/spark_api/models/constraint_spec.rb
spark_api-1.4.28 spec/unit/spark_api/models/constraint_spec.rb
spark_api-1.4.27 spec/unit/spark_api/models/constraint_spec.rb
spark_api-1.4.26 spec/unit/spark_api/models/constraint_spec.rb
spark_api-1.4.25 spec/unit/spark_api/models/constraint_spec.rb
spark_api-1.4.24 spec/unit/spark_api/models/constraint_spec.rb
spark_api-1.4.23 spec/unit/spark_api/models/constraint_spec.rb
spark_api-1.4.22 spec/unit/spark_api/models/constraint_spec.rb
spark_api-1.4.21 spec/unit/spark_api/models/constraint_spec.rb
spark_api-1.4.20 spec/unit/spark_api/models/constraint_spec.rb
spark_api-1.4.19 spec/unit/spark_api/models/constraint_spec.rb
spark_api-1.4.18 spec/unit/spark_api/models/constraint_spec.rb
spark_api-1.4.17 spec/unit/spark_api/models/constraint_spec.rb
spark_api-1.4.16 spec/unit/spark_api/models/constraint_spec.rb
spark_api-1.4.15 spec/unit/spark_api/models/constraint_spec.rb
spark_api-1.4.14 spec/unit/spark_api/models/constraint_spec.rb
spark_api-1.4.13 spec/unit/spark_api/models/constraint_spec.rb