我試着安裝RSpec的框架用於TDD和BDD的測試,也是自動測試寶石在同時運行一個連續的測試更改完成。軌道4 - 找不到發電機RSpec的:安裝
我一直在關注各類教程,其中一些人在這裏堆棧溢出,並在網上別人有,但執行
軌產生rspec的時候我不能找到解決辦法,:安裝
它給我一個錯誤'無法找到生成器rspec:安裝'。
我在此附上寶石的文件:[增訂]
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.0.3'
# Use sqlite3 as the database for Active Record
gem 'sqlite3'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 4.0.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .js.coffee assets and views
gem 'coffee-rails', '~> 4.0.0'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby
# Use jquery as the JavaScript library
gem 'jquery-rails'
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 1.2'
group :doc do
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', require: false
end
group :development, :test do
gem 'rspec-rails', '2.13.1'
end
現在即時通訊面臨的問題與自動測試,我執行「創業板安裝ZenTest」,然後「創業板安裝自動測試,軌」,當我執行的自動測試命令它會拋出一個異常:'.autotest:1:in':未定義的局部變量或方法ruby'for main:Object(NameError)'',任何解決方案? –
jandresrodriguez
你正在使用什麼操作系統,你可以在這裏粘貼你的Gemfile。 – osleonard
即時通訊使用Ubuntu 13.10和我更新完整的Gemfile在問題 – jandresrodriguez