mirror of
https://github.com/awesome-print/awesome_print
synced 2023-03-27 23:22:34 -04:00
Remove the lib/ap.rb
This ways we need to require always awesome_print
This commit is contained in:
parent
f6fbe023b4
commit
c75c058ed6
2 changed files with 1 additions and 12 deletions
10
lib/ap.rb
10
lib/ap.rb
|
@ -1,10 +0,0 @@
|
||||||
# Copyright (c) 2010-2013 Michael Dvorkin
|
|
||||||
#
|
|
||||||
# Awesome Print is freely distributable under the terms of MIT license.
|
|
||||||
# See LICENSE file or http://www.opensource.org/licenses/mit-license.php
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Keeping this for backwards compatibility to allow
|
|
||||||
# require "ap"
|
|
||||||
#
|
|
||||||
require File.dirname(__FILE__) + "/awesome_print"
|
|
|
@ -44,9 +44,8 @@ RSpec.describe "AwesomePrint" do
|
||||||
expect(ap object).to eq(object)
|
expect(ap object).to eq(object)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Require different file name this time (lib/ap.rb vs. lib/awesome_print).
|
|
||||||
it "several require 'awesome_print' should do no harm" do
|
it "several require 'awesome_print' should do no harm" do
|
||||||
require File.expand_path(File.dirname(__FILE__) + '/../lib/ap')
|
require File.expand_path(File.dirname(__FILE__) + '/../lib/awesome_print')
|
||||||
expect { rand.ai }.not_to raise_error
|
expect { rand.ai }.not_to raise_error
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue