运行web测试框架watir在Firefox/Linux上
我正在开发一个关于Fedora Linux的网站。我想运行测试。所以我选择watir & ruby开发来测试。 所以我婉我系统上安装的Watir但我有错误: 我跑这个剧本运行web测试框架watir在Firefox/Linux上
cat <<EOF> /etc/yum.repos.d/ruby.repo
[ruby]
name=ruby for Fedora \$releasever - \$basearch - Base
baseurl=http://mirror.nl.ergo-project.org/repositories/custom-f13-ruby/x86_64/
failovermethod=priority
enabled=1
gpgcheck=0
[ruby-extra]
name=ruby extra for Fedora \$releasever - \$basearch - Base
baseurl=http://mirror.nl.ergo-project.org/repositories/feature-f13-ruby-1.9.1/x86_64/
failovermethod=priority
enabled=1
gpgcheck=0
EOF
yum --enablerepo=ruby,ruby-extra install ruby ruby-devel
gem update --system
gem install firewatir
gem uninstall activesupport
gem install activesupport --version '=2.3.8'
但我对试运行失败。我输入一个红宝石控制台(只是运行irb命令),当我require 'firewatir'
没关系(控制台显示我是真的),但是当我创建一个新的测试ff=Firewatir::Firefox.new
我有irb(main):002:0> ff = Firewatir :: Firefox.new ArgumentError: Anonymous modules have no name to be referenced by from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:585:in
to_constant_name' from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:391:in qualified_name_for' from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:104:in
rescue in const_missing ' 从/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:94:in const_missing' from (irb):2 from /usr/local/bin/irb:12:in
'`
可能是一个权限的事情
作为特权用户安装了吗?
是所有安装的根目录 – 2010-10-04 12:08:56