Sha256: bb04e0e4af79cfe3860a60f1b612ec116b62a2461b1f5fd0f4e395e16484c509

Contents?: true

Size: 287 Bytes

Versions: 60

Compression:

Stored size: 287 Bytes

Contents

require File.expand_path('../../../spec_helper', __FILE__)

describe "NilClass#&" do
  it "returns false" do
    (nil & nil).should == false
    (nil & true).should == false
    (nil & false).should == false
    (nil & "").should == false
    (nil & mock('x')).should == false
  end
end

Version data entries

60 entries across 60 versions & 3 rubygems

Version Path
rhodes-3.3.2.beta.2 spec/framework_spec/app/spec/core/nil/and_spec.rb
rhodes-3.3.2.beta.1 spec/framework_spec/app/spec/core/nil/and_spec.rb
rhodes-3.3.1 spec/framework_spec/app/spec/core/nil/and_spec.rb
rhodes-3.3.0 spec/framework_spec/app/spec/core/nil/and_spec.rb
rhodes-3.3.0.beta.3 spec/framework_spec/app/spec/core/nil/and_spec.rb
rhodes-3.3.0.beta.2 spec/framework_spec/app/spec/core/nil/and_spec.rb
rhodes-3.3.0.beta.1 spec/framework_spec/app/spec/core/nil/and_spec.rb
rhodes-3.2.3 spec/framework_spec/app/spec/core/nil/and_spec.rb
rhodes-3.2.2 spec/framework_spec/app/spec/core/nil/and_spec.rb
rhodes-3.2.2.beta spec/framework_spec/app/spec/core/nil/and_spec.rb
rhodes-3.2.1 spec/framework_spec/app/spec/core/nil/and_spec.rb
rhodes-3.2.0 spec/framework_spec/app/spec/core/nil/and_spec.rb
rhodes-3.2.0.beta.9 spec/framework_spec/app/spec/core/nil/and_spec.rb
rhodes-3.2.0.beta.8 spec/framework_spec/app/spec/core/nil/and_spec.rb
rhodes-3.2.0.beta.7 spec/framework_spec/app/spec/core/nil/and_spec.rb
rhodes-3.2.0.beta.6 spec/framework_spec/app/spec/core/nil/and_spec.rb
rhodes-3.2.0.beta.5 spec/framework_spec/app/spec/core/nil/and_spec.rb
rhodes-3.2.0.beta.4 spec/framework_spec/app/spec/core/nil/and_spec.rb
rhodes-3.2.0.beta.2 spec/framework_spec/app/spec/core/nil/and_spec.rb
rhodes-3.2.0.beta.1 spec/framework_spec/app/spec/core/nil/and_spec.rb