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-filter-cache-redis-0.1.0 vendor/bundle/jruby/1.9/gems/insist-1.0.0/spec/insist/nil_spec.rb
logstash-filter-csharp-0.1.0 vendor/bundle/jruby/2.3.0/gems/insist-1.0.0/spec/insist/nil_spec.rb
logstash-filter-htmlentities-0.1.0 vendor/bundle/jruby/1.9/gems/insist-1.0.0/spec/insist/nil_spec.rb
logstash-output-icinga-1.0.0 vendor/jruby/1.9/gems/insist-1.0.0/spec/insist/nil_spec.rb
logstash-filter-zabbix-0.1.2 vendor/bundle/jruby/1.9/gems/insist-1.0.0/spec/insist/nil_spec.rb
logstash-filter-zabbix-0.1.1 vendor/bundle/jruby/1.9/gems/insist-1.0.0/spec/insist/nil_spec.rb
logstash-input-fifo-0.9.1 vendor/bundle/jruby/1.9/gems/insist-1.0.0/spec/insist/nil_spec.rb
logstash-input-fifo-0.9.0 vendor/bundle/jruby/1.9/gems/insist-1.0.0/spec/insist/nil_spec.rb
logstash-input-salesforce-3.0.0 vendor/jruby/1.9/gems/insist-1.0.0/spec/insist/nil_spec.rb
ivanvc-logstash-input-s3-3.1.1.4 vendor/local/gems/insist-1.0.0/spec/insist/nil_spec.rb
ivanvc-logstash-input-s3-3.1.1.3 vendor/local/gems/insist-1.0.0/spec/insist/nil_spec.rb
ivanvc-logstash-input-s3-3.1.1.2 vendor/local/gems/insist-1.0.0/spec/insist/nil_spec.rb
logstash-filter-delta-1.1.0 vendor/bundle/jruby/2.2.0/gems/insist-1.0.0/spec/insist/nil_spec.rb
logstash-filter-delta-1.0.1 vendor/bundle/jruby/2.2.0/gems/insist-1.0.0/spec/insist/nil_spec.rb
logstash-filter-base64-1.0.4 vendor/bundle/jruby/2.2.0/gems/insist-1.0.0/spec/insist/nil_spec.rb
logstash-filter-base64-1.0.3 vendor/bundle/jruby/2.2.0/gems/insist-1.0.0/spec/insist/nil_spec.rb
logstash-filter-delta-1.0.0 vendor/bundle/jruby/2.2.0/gems/insist-1.0.0/spec/insist/nil_spec.rb
logstash-filter-base64-1.0.2 vendor/bundle/jruby/2.3.0/gems/insist-1.0.0/spec/insist/nil_spec.rb
logstash-filter-base64-1.0.1 vendor/bundle/jruby/2.3.0/gems/insist-1.0.0/spec/insist/nil_spec.rb
logstash-filter-base64-1.0.0 vendor/bundle/jruby/2.3.0/gems/insist-1.0.0/spec/insist/nil_spec.rb