korimo / firewatir

Automatically exported from code.google.com/p/firewatir
0 stars 0 forks source link

Cannot vendor firewatir gem (Rails) #71

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Add   config.gem 'firewatir'   to config/environment.rb
2. sudo gem install firewatir
3. rake gems:unpack && rake gems:build
4. sudo gem uninstall firewatir
5. run your tests

What is the expected output? What do you see instead?

Tests should run the same way they do when firewatir gem is installed on
the system. Instead it will choke because "These gems that this application
depends on are missing: - firewatir"

What version of the product are you using? On what operating system?

1.1.1, Ubuntu. Rails 2.1.0, RubyGems 0.9.4.

Please provide any additional information below.

This is hugely frustrating.

Original issue reported on code.google.com by pietro...@gmail.com on 13 Jun 2008 at 3:21

GoogleCodeExporter commented 9 years ago
Solution is to restructure gem in more standard way (i.e. add a lib directory). 
As a
work around you could add something like

  config.load_paths += Dir["#{RAILS_ROOT}/vendor/gems/**"].map do |dir| 
    File.directory?("#{dir}/lib") ? '' : dir
  end

(adds the top level directory of every vendored gem to the load path unless it
contains a lib directory (which will already be added automagically)) to 
environment.rb.

Original comment by pietro...@gmail.com on 13 Jun 2008 at 4:32

GoogleCodeExporter commented 9 years ago
Neater ...

  config.load_paths += Dir["#{RAILS_ROOT}/vendor/gems/*"].reject {
    |d| File.directory?("#{d}/lib")
  }

Original comment by pietro...@gmail.com on 13 Jun 2008 at 4:46

GoogleCodeExporter commented 9 years ago
moved to http://jira.openqa.org/browse/WTR-393

Original comment by zeljko.f...@gmail.com on 5 Nov 2009 at 12:04

GoogleCodeExporter commented 9 years ago
Ticket moved to http://jira.openqa.org/browse/WTR. Please see comments for
the exact URL.

Original comment by zeljko.f...@gmail.com on 20 Nov 2009 at 10:39