Uruchamianie programu rspec po raz pierwszy z użyciem samouczka Rails, s. 95. Pierwsze to wyjście:rspec "nie można załadować takiego pliku"
[email protected]:~/rails_projects/sample_app1$ bundle exec rspec /spec/requests/static_pages_spec.rb
/home/david/.rvm/gems/[email protected]/gems/rspec-core-2.9.0/lib/rspec/core/configuration.rb:746:in `load': cannot load such file -- /spec/requests/static_pages_spec.rb (LoadError)
from /home/david/.rvm/gems/[email protected]/gems/rspec-core-2.9.0/lib/rspec/core/configuration.rb:746:in `block in load_spec_files'
from /home/david/.rvm/gems/[email protected]/gems/rspec-core-2.9.0/lib/rspec/core/configuration.rb:746:in `map'
from /home/david/.rvm/gems/[email protected]/gems/rspec-core-2.9.0/lib/rspec/core/configuration.rb:746:in `load_spec_files'
from /home/david/.rvm/gems/[email protected]/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:22:in `run'
from /home/david/.rvm/gems/[email protected]/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run'
from /home/david/.rvm/gems/[email protected]/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:10:in `block in autorun'
Oto Gemfile:
source 'https://rubygems.org'
gem 'rails', '3.2.3'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
group :development, :test do
gem 'sqlite3', '1.3.5'
gem 'rspec-rails', '2.9.0'
end
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '3.2.4'
gem 'coffee-rails', '3.2.2'
gem 'uglifier', '1.2.3'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', :platform => :ruby
end
gem 'jquery-rails'
group :test do
gem 'capybara', '1.1.2'
end
zrobiono szyny generować rspec: zainstalować i szyny generować integration_test poleceń static_pages. Pomysły?
Tak, po prostu zobaczyłem, że .. może również użyć 'bundle exec rspec./Spec/requests/static_pages_spec.rb' – dave104