Sha256: 1a2949838342c7be66e9d8cf04978f3c865c4e62fae3a8039a95cc95a8239213

Contents?: true

Size: 226 Bytes

Versions: 9

Compression:

Stored size: 226 Bytes

Contents

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
opal-0.3.27 spec/core/true/or_spec.rb
opal-0.3.26 spec/core/true/or_spec.rb
opal-0.3.25 spec/core/true/or_spec.rb
opal-0.3.22 spec/core/true/or_spec.rb
opal-0.3.21 test/core/true/or_spec.rb
opal-0.3.20 test/core/true/or_spec.rb
opal-0.3.19 test/core/true/or_spec.rb
opal-0.3.18 core/spec/core/true/or_spec.rb
opal-0.3.17 spec/core/true/or_spec.rb