Sha256: ae45d3b9d491fcf72ebbd26c6d735f934411f1003bf33954302adf825a6ea42d
Contents?: true
Size: 677 Bytes
Versions: 4
Compression:
Stored size: 677 Bytes
Contents
require 'spec_helper' describe Github do let(:method) { 'create_repos'} let(:alt_method) { 'repos.create'} it { described_class.constants.should include :DEPRECATION_PREFIX } context '.deprecate' do before do Github.deprecation_tracker = [] end it 'tracks messages' do Github.should_receive(:warn).once() Github.deprecate(method) Github.deprecate(method) end it 'prints the message through Kernel' do Github.should_receive(:warn).once() Github.deprecate method end end it 'prints the message through Kernel' do Github.should_receive(:warn) Github.warn_deprecation method end end # Github
Version data entries
4 entries across 4 versions & 1 rubygems