Mousa Ali
Mousa Ali

Reputation: 3

How to find the path of where a Ruby Gem is installed

I have just installed cucumber and bundler in my MAC and I get this error message:

Error creating formatter: Teamcity::Cucumber::Formatter (ArgumentError)

gem 'cucumber', version
load Gem.bin_path('cucumber', 'cucumber', version)

Upvotes: 0

Views: 227

Answers (1)

orde
orde

Reputation: 5283

According to this ticket, cucumber >= 2.1.0 is not supported yet. You can downgrade, wait for an update, or use their suggested monkey patch:

find in RubyMine folder file named "formatter_03103.rb" and replace line 22 to

 def initialize(step_mother, path_or_io, options) 

and line 24 to

tc_initialize(options, '|', path_or_io)

And the command gem environment returns lots of info about your gems, including the INSTALLATION DIRECTORY.

Upvotes: 1

Related Questions