[rspec-users] Windows rspec "gem install win32console"
JohnnyButler7 at gmail.com
Tue Mar 6 09:58:00 EST 2007
i have got RSpec to work on my machine now. I created a new app and
followed the instructions again. If i navigate to the spec folder int he
rails directory and type spec user_spec.rb then this works fine. If i try
the rake command
first of all i get the "gem install win32console", so if i remove the
--colour from the options i get the error i posted above. Its basically
saying it cannot find the spec files. Do i need to set the path somehwere
so when i do a rake spec:models it knows where to find them?
David Chelimsky-2 wrote:
> On 3/6/07, johnnybutler7 <JohnnyButler7 at gmail.com> wrote:
>> Hi I am trying to use RSPEC on windows and i keep getting the following
>> "You must gem install win32console to use colour on Windows"
>> I have installed this Gem but i am still getting the same error. The
>> file that error is coming from is:
> That line reads as follows:
> begin ; require 'Win32/Console/ANSI' if @colour && PLATFORM =~ /win32/
> ; rescue LoadError ; raise "You must gem install win32console to use
> colour on Windows" ; end
> So it seems odd that your rspec was complaining even after you
> installed the plugin. There are people are using rspec on windows w/
> some success, so I'm not convinced the problem is in rspec alone - it
> seems to be in rspec in conjunction w/ your particular system.
> Any chance you recently upgraded to Vista? Maybe the environment
> variables have changed?
>> Do i need to put this line of code in? Where do i put it?
>> require 'Win32/Console/ANSI'
>> Can anyone help me, ive searched the web but cant seem to find a
>> View this message in context:
>> Sent from the rspec-users mailing list archive at Nabble.com.
>> rspec-users mailing list
>> rspec-users at rubyforge.org
> rspec-users mailing list
> rspec-users at rubyforge.org
View this message in context: http://www.nabble.com/Windows-rspec-%22gem-install-win32console%22-tf3354239.html#a9333516
Sent from the rspec-users mailing list archive at Nabble.com.
More information about the rspec-users