Sha256: bb5af90f3d6c4cebb2fb22956603a79fd5e0090252666983743655b369805069

Contents?: true

Size: 461 Bytes

Versions: 10

Compression:

Stored size: 461 Bytes

Contents

require 'helper'
require 'cassanity/operators/gt'

describe Cassanity::Operators::Gt do
  describe "self named helper method" do
    it "returns instance" do
      Cassanity::Operators::Gt(5).should eq(described_class.new(5))
    end
  end

  describe "#initialize" do
    subject {
      described_class.new(5)
    }

    it "sets symbol" do
      subject.symbol.should be(:>)
    end

    it "sets value" do
      subject.value.should eq(5)
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
cassanity-0.6.0 spec/unit/cassanity/operators/gt_spec.rb
cassanity-0.6.0.beta5 spec/unit/cassanity/operators/gt_spec.rb
cassanity-0.6.0.beta4 spec/unit/cassanity/operators/gt_spec.rb
cassanity-0.6.0.beta3 spec/unit/cassanity/operators/gt_spec.rb
cassanity-0.6.0.beta2 spec/unit/cassanity/operators/gt_spec.rb
cassanity-0.6.0.beta1 spec/unit/cassanity/operators/gt_spec.rb
cassanity-0.5.1 spec/unit/cassanity/operators/gt_spec.rb
cassanity-0.5.0 spec/unit/cassanity/operators/gt_spec.rb
cassanity-0.4.0 spec/unit/cassanity/operators/gt_spec.rb
cassanity-0.3.0 spec/unit/cassanity/operators/gt_spec.rb