LoginSignup
0
0

More than 5 years have passed since last update.

CentOS7.2にRSpecをinstallしてみたが、CapybaraのClick系コマンドが動作しない模様

Last updated at Posted at 2016-07-30

最初に

yum update

VNC

  • 先にuseradd

useradd <user_name>

各種install

git

  • default version
# git --version
git version 1.8.3.1

rbenv via anyenv

bundler

gem install bundler

capybara-webkit

RSpec

  • Gemfileの最後に下記を追加

gem "capybara-webkit"

  • 環境毎にinstallするgemsを指定したい場合

bundle install --path vendor/bundle

  • 実行

bundle exec rspec もしくは
bundle exec rspec ***_spec.rb

まとめ

  • MacOS, Winで動作していたSPecがCentOSでは動作しない。
  • CentOS7.2の環境だと、capybaraのclick_link, click_button_ click_onが動作しない模様。
0
0
3

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0