Sha256: 27459327ce4e777c420e8c3ec83d4fe27a40377415430fcf119141bf3ce15a4f

Contents?: true

Size: 249 Bytes

Versions: 5

Compression:

Stored size: 249 Bytes

Contents

require 'spec_helper'

describe NilClass do
  it "should return nil when calling undefined methods on nil" do
    nil.undefined.should == nil
  end

  it "should do not return nil when calling exist methods" do
    nil.nil?.should be_true
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rails_best_practices-0.7.1 spec/rails_best_practices/core_ext/nil_class_spec.rb
rails_best_practices-0.7.0 spec/rails_best_practices/core_ext/nil_class_spec.rb
rails_best_practices-0.6.7 spec/rails_best_practices/core_ext/nil_class_spec.rb
rails_best_practices-0.6.6 spec/rails_best_practices/core_ext/nil_class_spec.rb
rails_best_practices-0.6.5 spec/rails_best_practices/core_ext/nil_class_spec.rb