I cannot seem to get the redgreen gem working with Rails 3 and Ruby
1.9.2 for testing.
I’ve read everything I can find and can’t find a clear answer. I’ve
tried gem install redgreen as well as gem install mynyml-redgreen.
Still no luck.
I cannot seem to get the redgreen gem working with Rails 3 and Ruby
1.9.2 for testing.
I’ve read everything I can find and can’t find a clear answer. I’ve
tried gem install redgreen as well as gem install mynyml-redgreen.
Still no luck.
On Wed, Dec 29, 2010 at 4:32 PM, Barb [email protected] wrote:
I cannot seem to get the redgreen gem working with Rails 3 and Ruby
1.9.2 for testing.I’ve read everything I can find and can’t find a clear answer. I’ve
tried gem install redgreen as well as gem install mynyml-redgreen.Still no luck.
Have you opened ticket with the gem’s author? This would have been my
first point of contact.
Good luck,
-Conrad
I had to configure as follows to get it working:
gem ‘mynyml-redgreen’
require ‘redgreen’
On Wed, Dec 29, 2010 at 5:11 PM, djangst [email protected] wrote:
I had to configure as follows to get it working:
Gemfile
gem ‘mynyml-redgreen’
djangst, you should be able to add it to your Gemfile as follows:
gem “redgreen”
Good luck,
-Conrad
I’ve tried this too.
I get when I run “rake test”
/.rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.3/lib/active_support/
dependencies.rb:239:in `require’: no such file to load – redgreen
(LoadError)
The gem is definitely installed:
mongoid (2.0.0.beta.20)
mynyml-redgreen (0.7.1)
mysql (2.8.1)
On Wed, Dec 29, 2010 at 10:49 PM, Conrad T. [email protected]
wrote:
gem “redgreen”
group :development, :test do
gem ‘redgreen’
end
I guess it is a bug without a solution right now.
Hi Conrad,
add it to your Gemfile as follows:
gem “redgreen”
I just tried this again and received the original error which prompted
the workaround a couple of weeks ago:
no such file to load – test/unit/ui/console/testrunner
Based on reading at the time it seemed to be related to dependency
issues after the switch to MiniTest in Ruby 1.9. So it works for you
on 1.9?
Did you find a solution for this?
I did, by adding the following gems to my Gemfile (development/test
group) to change the layout and colors of test results:
gem ‘term-ansicolor’
gem ‘turn’
Purge all the ‘redgreen’ stuff if you go this route.
You can see what it looks like here:
djangst wrote in post #974125:
Did you find a solution for this?
I did, by adding the following gems to my Gemfile (development/test
group) to change the layout and colors of test results:gem ‘term-ansicolor’
gem ‘turn’Purge all the ‘redgreen’ stuff if you go this route.
You can see what it looks like here:
‘turn’ looks clean and uncluttered.
File: README — Documentation for turn (0.8.1)
Managed to make it work with the
following additions
Gemfile
gem ‘autotest-standalone’, :require => ‘autotest’
gem ‘autotest-rails-pure’
gem ‘term-ansicolor’
gem ‘turn’
.autotest
require ‘turn’
On Thu, Dec 30, 2010 at 3:01 AM, djangst [email protected] wrote:
Based on reading at the time it seemed to be related to dependency
issues after the switch to MiniTest in Ruby 1.9. So it works for you
on 1.9?
Yes, it works for me using Ruby 1.9.2p136.
-Conrad
Sean,
You’re right, and that’s confirmed here:
“If you have the ‘ansi’ gem installed, then TURN output will be
displayed in wonderful technicolor…”
So have ‘ansi’ installed and just reference “gem ‘turn’”:
group :development, :test do
gem ‘turn’
end
Just an update, I noticed that things seem to work fine without the
‘term-ansicolor’ gem.
Thank for your confirmation djangst.
An addition for windows users, to make this work, just add the following
gem to the list earlier.
gem ‘win32console’, :platforms => [:mingw]
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs