Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
can't alias context from irb_context.
Sebastian W.
1/14/2009 5:17:00 PM
Dear ruby-talk,
I'm trying to write a friendly script that opens up an IRB session after
loading some classes and making a few instance variables for fun and
profit.
My script looks roughly like this:
#!/usr/bin/ruby
$LOAD_PATH.unshift("#{File.dirname(File.expand_path(__FILE__))}/lib")
require "irb"
# require a few gems here here...
include MyMixin
@browser = Selenium::SeleniumDriver.new("localhost", 4444, "*chrome",
http://", 300000)
@browser.start
IRB.start(__FILE__)
END {
@browser.stop
}
So, I run my script, everything works as I'm expecting. But, IRB gives
me the following warning message: "irb: warn: can't alias context from
irb_context."
Is this something I should worry about? What do I fix to make it go
away?
--
Posted via
http://www.ruby-...
.
2 Answers
Sebastian W.
1/14/2009 7:17:00 PM
0
Nobody? :(
--
Posted via
http://www.ruby-...
.
Sebastian W.
1/14/2009 11:31:00 PM
0
Sebastian W. wrote:
> Nobody? :(
Ah okay, figured it out. I was requiring RSpec when I didn't really need
it, and that made IRB unhappy. Taking out the require "rspec" made the
warning go away.
Hopefully this will help someone someday! :)
--
Posted via
http://www.ruby-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
can't alias context from irb_context.
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password