Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
Help us understand the problem. What is going on with this article?

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

More than 3 years have passed since last update.

最初に

yum update

VNC

  • 先にuseradd

useradd <user_name>

各種install

git

  • default version
# git --version
git version 1.8.3.1

rbenv via anyenv

http://qiita.com/tkmiya34/items/71293fc83024fbcb459d

bundler

gem install bundler

http://tomoyamkung.net/2014/09/08/ruby-bundler/

capybara-webkit

RSpec

http://ruby-rails.hatenadiary.com/entry/20150420/1429462755

  • 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が動作しない模様。
snumano
少年野球・草野球のスコアを家族や知人で共有できるサービス「BaseballScore」を運営しています。 https://baseballscore.herokuapp.com/
http://nushu123.blogspot.jp/
idcf
未来をささえる、Your Innovative Partner
http://www.idcf.jp/cloud/
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away