1
0
Fork 0
mirror of https://github.com/awesome-print/awesome_print synced 2023-03-27 23:22:34 -04:00

Fix Broken specs on Travis

Delete the RAILS_ENV since this is defined by default on Travis
http://docs.travis-ci.com/user/ci-environment/
This commit is contained in:
Mauro George 2015-01-12 19:02:35 -02:00
parent ee871db0c3
commit 3f7137ce00

View file

@ -204,6 +204,7 @@ EOS
describe "Console" do
it "should detect IRB" do
class IRB; end
ENV.delete('RAILS_ENV')
expect(AwesomePrint.console?).to eq(true)
expect(AwesomePrint.rails_console?).to eq(false)
Object.instance_eval{ remove_const :IRB }
@ -211,6 +212,7 @@ EOS
it "should detect Pry" do
class Pry; end
ENV.delete('RAILS_ENV')
expect(AwesomePrint.console?).to eq(true)
expect(AwesomePrint.rails_console?).to eq(false)
Object.instance_eval{ remove_const :Pry }