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:
parent
ee871db0c3
commit
3f7137ce00
1 changed files with 2 additions and 0 deletions
|
@ -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 }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue