Sha256: 0344d20b30c6e476aa1502daf814fb5b41adf49c99034ab3eba6d7483cf3dad2

Contents?: true

Size: 299 Bytes

Versions: 74

Compression:

Stored size: 299 Bytes

Contents

require "spec_setup"
require "insist"

describe Insist::Nil do
  describe "#nil?" do
    it "should be OK if the #value is nil" do
      insist { nil }.nil?
    end

    it "should fail if the #value is not nil" do
      insist do
        insist { "not nil" }.nil?
      end.fails
    end
  end
end

Version data entries

74 entries across 70 versions & 18 rubygems

Version Path
able-neo4j-1.0.0 vendor/bundle/jruby/1.9/gems/insist-1.0.0/spec/insist/nil_spec.rb
logstash-input-beats-2.0.2 vendor/jruby/1.9/gems/logstash-codec-json-2.0.3/vendor/gems/insist-1.0.0/spec/insist/nil_spec.rb
logstash-input-beats-2.0.2 vendor/jruby/1.9/gems/insist-1.0.0/spec/insist/nil_spec.rb
logstash-codec-json-2.0.3 vendor/gems/insist-1.0.0/spec/insist/nil_spec.rb
logstash-input-beats-0.9.2 vendor/jruby/1.9/gems/insist-1.0.0/spec/insist/nil_spec.rb
logstash-input-beats-0.9.1 vendor/jruby/1.9/gems/insist-1.0.0/spec/insist/nil_spec.rb
insist-1.0.0 spec/insist/nil_spec.rb
insist-0.0.8 spec/insist/nil_spec.rb
insist-0.0.7 spec/insist/nil_spec.rb
insist-0.0.6 spec/insist/nil_spec.rb
insist-0.0.5 spec/insist/nil_spec.rb
insist-0.0.4 spec/insist/nil_spec.rb
insist-0.0.3 spec/insist/nil_spec.rb
insist-0.0.2 spec/insist/nil_spec.rb