1
0
Fork 0
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:
Mauro George 2015-02-19 19:36:33 -02:00
parent f6fbe023b4
commit c75c058ed6
2 changed files with 1 additions and 12 deletions

View file

@ -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"

View file

@ -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