ruby - cannot create the rspec files on windows 'rails app" -


i'm running on windows 7 , cannot install/create rspec files , capybara needed work on assignment .

if finish simple setup steps listed below , give me link empty app repository download finish assignment , gratefull .

by way , 'm getting following errors in step 4 if . have asked before no 1 have answered ;( enter image description here enter image description here

steps needed :

  1. create new rails application called todolists

  2. add following specification gemfile

    group :test do

    gem 'rspec-rails', '~> 3.0'

    gem 'capybara'

    end

  3. run bundle command resolve new gems

  4. from todolists application root directory, initialize rspec tests using rails generate

rspec:install command

[todolists]$ rails generate rspec:install  create .rspec  create spec  create spec/spec_helper.rb  create spec/rails_helper.rb 

add following line .rspec add verbose output test results.

--format documentation 
  1. download , extract starter set of bootstrap files.

    1

    |-- gemfile

    |-- db

    | ‘-- seed.rb

    ‘-- spec

    ‘-- features

    ‘-- module3_action_pack_spec.rb

• overwrite existing gemfile gemfile bootstrap fileset. should identical,

but done make sure gems , versions use in solution can processed the

automated grader when submit. submission should tested version of file.

• overwrite existing db/seed.rb file using seeds.rb provided bootstrap fileset. the

bootstrap seeds.rb file contains test data useful during development , unit tests.

• add spec/features/module3_action_pack_spec.rb file provided bootstrap fileset your

todolists application. within application root directory, first need create corresponding

spec/features sub-directory place module3_action_pack_spec.rb file. file contains tests that

will determine whether have completed assignment.

6-run rspec

the problem rspec versions > 2.8.0 don't go windows. can try install older version of rspec-rails? include in gemfile.

gem 'rspec-rails', '~> 2.8' 

run bundle install , try

rails g rspec:install 

Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -