spec/deprecation_spec.rb in deprecation-0.0.1 vs spec/deprecation_spec.rb in deprecation-0.0.2
- old
+ new
@@ -1,20 +1,20 @@
require 'spec_helper'
describe Deprecation do
class DeprecationTest
- include Deprecation
+ extend Deprecation
self.deprecation_behavior = :raise
self.deprecation_horizon = 'release 0.1'
def a
1
end
- deprecate :a
+ deprecation_deprecate :a
def b
end
@@ -24,15 +24,15 @@
def d
end
- deprecate :c, :d
+ deprecation_deprecate :c, :d
def e
end
- deprecate :e => { :deprecation_horizon => 'asdf 1.4' }
+ deprecation_deprecate :e => { :deprecation_horizon => 'asdf 1.4' }
end
subject { DeprecationTest.new}
describe "a" do
it "should be deprecated" do