Skip to content

Instantly share code, notes, and snippets.

@sunaot
Created April 10, 2014 10:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sunaot/10366085 to your computer and use it in GitHub Desktop.
Save sunaot/10366085 to your computer and use it in GitHub Desktop.
capybara on windows

ActiveScriptRuby

から自分の環境にあった Ruby の最新版をダウンロード&インストール

Gitbash

からダウンロード&インストール (オプションはすべてデフォルトでok)

DevKit

から DevKit の Ruby2.0 版をダウンロード

どこか継続的に使える場所に解凍 (自己解凍書庫)。

gitbash でその場所へ移動して、下記のとおりインストール

ruby dk.rb init
ruby dk.rb install

Chromedriver のインストール

から最新をダウンロードして、PATH の通ったところへ解凍した chromedriver.exe を置く (たとえば C:\Users<your name>\bin など。環境変数を確認して適当にやってもらえれば ok です)。

capybara の実行

あとは git clone して bundle install して rake test するいつもの流れ。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment