Sha256: 040a303a9e672d137c46999947bb772a1dec0571e73c631ab7a867014550ccae

Contents?: true

Size: 395 Bytes

Versions: 31

Compression:

Stored size: 395 Bytes

Contents

require "spec_helper"

describe Object do

  describe "blank?" do
    it "returns true for Objects perceived to be blank" do
      ["", false, nil, [], {}].each do |object|
        object.should be_blank
      end
    end

    it "returns false for every other Object" do
      ["!blank", true, [:a], {:a => "b"}].each do |object|
        object.should_not be_blank
      end
    end
  end

end

Version data entries

31 entries across 31 versions & 7 rubygems

Version Path
vagrant-tiktalik-0.0.3 vendor/bundle/ruby/2.0.0/gems/savon-0.9.5/spec/savon/core_ext/object_spec.rb
wasabi-2.5.0 spec/wasabi/core_ext/object_spec.rb
wasabi-2.4.1 spec/wasabi/core_ext/object_spec.rb
wasabi-2.4.0 spec/wasabi/core_ext/object_spec.rb
wasabi-2.3.0 spec/wasabi/core_ext/object_spec.rb
wasabi-2.2.0 spec/wasabi/core_ext/object_spec.rb
wasabi-2.1.1 spec/wasabi/core_ext/object_spec.rb
savon-0.9.9 spec/savon/core_ext/object_spec.rb
wasabi-2.1.0 spec/wasabi/core_ext/object_spec.rb
savon-0.9.8 spec/savon/core_ext/object_spec.rb
they-savon-0.9.7.1 spec/savon/core_ext/object_spec.rb
regenersis-savon-1.0.0 spec/savon/core_ext/object_spec.rb
they-savon-0.9.7 spec/savon/core_ext/object_spec.rb
savon-0.9.7 spec/savon/core_ext/object_spec.rb
savon-0.9.6 spec/savon/core_ext/object_spec.rb
wasabi-2.0.0 spec/wasabi/core_ext/object_spec.rb
savon-0.9.5 spec/savon/core_ext/object_spec.rb
savon-0.9.4 spec/savon/core_ext/object_spec.rb
savon-0.9.3 spec/savon/core_ext/object_spec.rb
search_biomodel-1.0.0 search_biomodel/ruby/1.8/gems/savon-0.9.2/spec/savon/core_ext/object_spec.rb