Sha256: 65c6d2286078d8cd6962f733bddb5e1629299481b0e5a909b66b3610b231f548

Contents?: true

Size: 319 Bytes

Versions: 29

Compression:

Stored size: 319 Bytes

Contents

# encoding: utf-8

describe 'Date' do

  it 'should not crash when requesting frozen attributes' do
    # This test will pass without patch on MRI 1.9.x, but on MRI 1.8.x it
    # crashes. (Untested on other Ruby implementations such as Rubinius and
    # JRuby).
    d = Date.today
    d.freeze
    d.year
  end

end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
nanoc-3.7.4 test/base/core_ext/date_spec.rb
nanoc-3.7.3 test/base/core_ext/date_spec.rb
nanoc-3.7.2 test/base/core_ext/date_spec.rb
nanoc-3.7.1 test/base/core_ext/date_spec.rb
nanoc-3.7.0 test/base/core_ext/date_spec.rb
nanoc-3.6.11 test/base/core_ext/date_spec.rb
nanoc-3.6.10 test/base/core_ext/date_spec.rb
nanoc-3.6.9 test/base/core_ext/date_spec.rb
nanoc-3.6.8 test/base/core_ext/date_spec.rb
nanoc-3.6.7 test/base/core_ext/date_spec.rb
nanoc-3.6.6 test/base/core_ext/date_spec.rb
nanoc-3.6.5 test/base/core_ext/date_spec.rb
nanoc-3.6.4 test/base/core_ext/date_spec.rb
nanoc-3.6.3 test/base/core_ext/date_spec.rb
nanoc-3.6.2 test/base/core_ext/date_spec.rb
nanoc-3.6.1 test/base/core_ext/date_spec.rb
nanoc-3.6.0 test/base/core_ext/date_spec.rb
nanoc-3.5.0 test/base/core_ext/date_spec.rb
nanoc-3.5.0b2 test/base/core_ext/date_spec.rb
nanoc-3.5.0b1 test/base/core_ext/date_spec.rb