RubyのテスティングフレームワークRSpec
使用するにはまず bundler が必要なのでインストールします。
さらにbundlerをインストールするには
RubyGemsというパッケージ管理システムが必要なので、
yum install rubygems
yumを使ってインストールします


gemを使ってbundlerをインストールします
gem install bundler


テストプロジェクトフォルダに移動し、Gemfileを作成します。
bundle init

作成されたGemfileです

rspecについてすでに記述されていますね
bundleでrspecをインストールします
bundle install

インストールできました
Gemfile.lockファイルも追加されています

initオプションを付けてコマンドでrspecを初期化します
bundle exec rspec –init

おっと、怒られてしまいました。
rspecのインストールがうまくいっていないみたいです。
Gemfile.lockを削除してビルドし直してみるといいとのことなのでやってみます

ダメですねぇ
要調査です
コメント