Sha256: 1a42b68bedaa0d44a97b3aa3cffef5f1ac7fffb125e1e09b1c84fc5dfb72dc01

Contents?: true

Size: 722 Bytes

Versions: 2

Compression:

Stored size: 722 Bytes

Contents

covers 'assay/less_assay'

testcase LessAssay do

  class_method :pass? do

    test do
      assert LessAssay.pass?(1, 2)
      refute LessAssay.pass?(1, 1)
      refute LessAssay.pass?(2, 1)
    end

  end

  class_method :fail? do

    test do
      refute LessAssay.fail?(1, 2)
      assert LessAssay.fail?(1, 1)
      assert LessAssay.fail?(2, 1)
    end

  end

  class_method :assert! do

    test do
      LessAssay.assert!(1, 2)
    end

    test do
      expect LessAssay do
        LessAssay.assert!(2, 1)
      end
    end

  end

  class_method :refute! do

    test do
      LessAssay.refute!(2, 1)
    end

    test do
      expect LessAssay do
        LessAssay.refute!(1, 2)
      end
    end

  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
assay-0.4.1 test/case_less_assay.rb
assay-0.4.0 test/case_less_assay.rb