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
logstash-output-scalyr-0.1.9 vendor/bundle/jruby/2.5.0/gems/insist-1.0.0/spec/insist/nil_spec.rb
logstash-output-scalyr-0.1.8 vendor/bundle/jruby/2.5.0/gems/insist-1.0.0/spec/insist/nil_spec.rb
logstash-output-scalyr-0.1.7 vendor/bundle/jruby/2.5.0/gems/insist-1.0.0/spec/insist/nil_spec.rb
logstash-output-scalyr-0.1.6 vendor/bundle/jruby/2.5.0/gems/insist-1.0.0/spec/insist/nil_spec.rb
logstash-output-newrelic-1.2.0 vendor/bundle/jruby/2.5.0/gems/insist-1.0.0/spec/insist/nil_spec.rb
logstash-filter-csharp-0.2.1 vendor/bundle/jruby/2.5.0/gems/insist-1.0.0/spec/insist/nil_spec.rb
logstash-filter-csharp-0.2.1 vendor/bundle/jruby/2.3.0/gems/insist-1.0.0/spec/insist/nil_spec.rb
logstash-filter-csharp-0.2.0 vendor/bundle/jruby/2.3.0/gems/insist-1.0.0/spec/insist/nil_spec.rb
logstash-filter-csharp-0.2.0 vendor/bundle/jruby/2.5.0/gems/insist-1.0.0/spec/insist/nil_spec.rb
logstash-output-scalyr-0.1.5 vendor/bundle/jruby/2.5.0/gems/insist-1.0.0/spec/insist/nil_spec.rb
logstash-output-scalyr-0.1.4 vendor/bundle/jruby/2.5.0/gems/insist-1.0.0/spec/insist/nil_spec.rb
logstash-output-scalyr-0.1.3 vendor/bundle/jruby/2.5.0/gems/insist-1.0.0/spec/insist/nil_spec.rb
logstash-output-scalyr-0.1.2 vendor/bundle/jruby/2.5.0/gems/insist-1.0.0/spec/insist/nil_spec.rb
logstash-filter-device_detection-1.0.7-java vendor/bundle/jruby/1.9/gems/insist-1.0.0/spec/insist/nil_spec.rb
mrcooper-logstash-output-azuresearch-0.2.2 vendor/jruby/2.5.0/gems/insist-1.0.0/spec/insist/nil_spec.rb
logstash-output-icinga-1.1.0 vendor/jruby/2.3.0/gems/insist-1.0.0/spec/insist/nil_spec.rb
logstash-output-icinga-1.1.0 vendor/jruby/1.9/gems/insist-1.0.0/spec/insist/nil_spec.rb
logstash-filter-cache-redis-0.3.1 vendor/bundle/jruby/1.9/gems/insist-1.0.0/spec/insist/nil_spec.rb
logstash-filter-cache-redis-0.3.0 vendor/bundle/jruby/1.9/gems/insist-1.0.0/spec/insist/nil_spec.rb
logstash-filter-cache-redis-0.2.0 vendor/bundle/jruby/1.9/gems/insist-1.0.0/spec/insist/nil_spec.rb