Sha256: 9f27ccded3e80eb1fcc68864a1f0c7713e471e0096d382a9cf8b01d6b43bcdd3

Contents?: true

Size: 331 Bytes

Versions: 62

Compression:

Stored size: 331 Bytes

Contents

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

describe "TrueClass#&" do
  it "returns false if other is nil or false, otherwise true" do
    (true & true).should == true
    (true & false).should == false
    (true & nil).should == false
    (true & "").should == true
    (true & mock('x')).should == true
  end
end

Version data entries

62 entries across 62 versions & 3 rubygems

Version Path
rhodes-7.6.0 spec/framework_spec/app/spec/core/true/and_spec.rb
rhodes-7.5.1 spec/framework_spec/app/spec/core/true/and_spec.rb
rhodes-7.4.1 spec/framework_spec/app/spec/core/true/and_spec.rb
rhodes-7.1.17 spec/framework_spec/app/spec/core/true/and_spec.rb
rhodes-6.2.0 spec/framework_spec/app/spec/core/true/and_spec.rb
rhodes-6.0.11 spec/framework_spec/app/spec/core/true/and_spec.rb
rhodes-5.5.18 spec/framework_spec/app/spec/core/true/and_spec.rb
rhodes-5.5.17 spec/framework_spec/app/spec/core/true/and_spec.rb
rhodes-5.5.15 spec/framework_spec/app/spec/core/true/and_spec.rb
rhodes-5.5.0.22 spec/framework_spec/app/spec/core/true/and_spec.rb
rhodes-5.5.2 spec/framework_spec/app/spec/core/true/and_spec.rb
rhodes-5.5.0.7 spec/framework_spec/app/spec/core/true/and_spec.rb
rhodes-5.5.0.3 spec/framework_spec/app/spec/core/true/and_spec.rb
rhodes-5.5.0 spec/framework_spec/app/spec/core/true/and_spec.rb
tauplatform-1.0.3 spec/framework_spec/app/spec/core/true/and_spec.rb
tauplatform-1.0.2 spec/framework_spec/app/spec/core/true/and_spec.rb
tauplatform-1.0.1 spec/framework_spec/app/spec/core/true/and_spec.rb
opal-0.4.4 spec/rubyspec/core/true/and_spec.rb
opal-0.4.3 spec/rubyspec/core/true/and_spec.rb
opal-0.4.2 spec/rubyspec/core/true/and_spec.rb