Sha256: 2f7052839d02b88da27cf61d288ca13590e0a124d0043948557a36333c0f32e2

Contents?: true

Size: 482 Bytes

Versions: 10

Compression:

Stored size: 482 Bytes

Contents

require File.dirname(__FILE__) + "/../spec_helper"

class TypoDeprecatedTest < Test::Unit::TestCase
  class TestMe
    attr_accessor :one, :two, :three
    typo_deprecate :a => :one, :b => :two
  end

  def test_typo_deprecate
    t = TestMe.new
    t.should_receive(:typo_deprecated).with("Use one instead of a").once
    t.should_receive(:typo_deprecated).with("Use two instead of b").once
    t.should_receive(:one).once
    t.should_receive(:two).once
    t.a
    t.b
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
typo-5.0.3.98.1 spec/models/typo_deprecated_spec.rb
typo-5.0.3.98 spec/models/typo_deprecated_spec.rb
typo-5.1.1 spec/models/typo_deprecated_spec.rb
typo-5.1.2 spec/models/typo_deprecated_spec.rb
typo-5.1.3 spec/models/typo_deprecated_spec.rb
typo-5.1.98 spec/models/typo_deprecated_spec.rb
typo-5.1 spec/models/typo_deprecated_spec.rb
typo-5.2 spec/models/typo_deprecated_spec.rb
typo-5.2.98 spec/models/typo_deprecated_spec.rb
typo-5.3 spec/models/typo_deprecated_spec.rb