Sha256: 4bcb02d788ca8a53629695b4b395d6f160eba39aa93cb0ad1d5ef3533e7da94c

Contents?: true

Size: 348 Bytes

Versions: 11

Compression:

Stored size: 348 Bytes

Contents

require 'spec_helper'

describe RailsBestPractices::Core::Nil do
  let(:core_nil) { RailsBestPractices::Core::Nil.new }

  context "to_s" do
    it "should return self" do
      core_nil.to_s.should == core_nil
    end
  end

  context "method_missing" do
    it "should return self" do
      core_nil.undefined.should == core_nil
    end
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
rails_best_practices-0.10.1 spec/rails_best_practices/core/nil_spec.rb
rails_best_practices-0.10.0 spec/rails_best_practices/core/nil_spec.rb
rails_best_practices-raydog153-0.9.1 spec/rails_best_practices/core/nil_spec.rb
rails_best_practices-0.9.0 spec/rails_best_practices/core/nil_spec.rb
rails_best_practices-0.8.2 spec/rails_best_practices/core/nil_spec.rb
rails_best_practices-0.8.1 spec/rails_best_practices/core/nil_spec.rb
rails_best_practices-0.8.0 spec/rails_best_practices/core/nil_spec.rb
rails_best_practices-0.7.5 spec/rails_best_practices/core/nil_spec.rb
rails_best_practices-0.7.4 spec/rails_best_practices/core/nil_spec.rb
rails_best_practices-0.7.3 spec/rails_best_practices/core/nil_spec.rb
rails_best_practices-0.7.2 spec/rails_best_practices/core/nil_spec.rb