Rspec testing errors in Rails

Hi

Can any one tell me how to run the R spec specification.

I used this gem

gem “rspec-rails”

gem ‘guard-rspec’

gem ‘spring-commands-rspec’

when I run my rspec command

it throws these errors

C:\Users\GOPIKRISHN\Desktop\M\SaaSProject>rspec
C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/actionpack-4.2.0/lib/action
_controller/metal/strong_parameters.rb:528:in <class:Parameters>': cannot load such file -- rack/test (LoadError) from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/actionpack-4.2 .0/lib/action_controller/metal/strong_parameters.rb:106:in<module:ActionContro
ller>’
from
C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/actionpack-4.2
.0/lib/action_controller/metal/strong_parameters.rb:10:in <top (required)>' from C:/RailsInstaller/Ruby2.1.0/lib/ruby/2.1.0/rubygems/core_ext/kernel _require.rb:73:inrequire’
from
C:/RailsInstaller/Ruby2.1.0/lib/ruby/2.1.0/rubygems/core_ext/kernel
_require.rb:73:in require' from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activesupport- 4.2.0/lib/active_support/dependencies.rb:274:inblock in require’
from
C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-
4.2.0/lib/active_support/dependencies.rb:240:in load_dependency' from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activesupport- 4.2.0/lib/active_support/dependencies.rb:274:inrequire’
from
C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/actionpack-4.2
.0/lib/action_controller.rb:5:in <top (required)>' from C:/RailsInstaller/Ruby2.1.0/lib/ruby/2.1.0/rubygems/core_ext/kernel _require.rb:73:inrequire’
from
C:/RailsInstaller/Ruby2.1.0/lib/ruby/2.1.0/rubygems/core_ext/kernel
_require.rb:73:in require' from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activesupport- 4.2.0/lib/active_support/dependencies.rb:274:inblock in require’
from
C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-
4.2.0/lib/active_support/dependencies.rb:240:in load_dependency' from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activesupport- 4.2.0/lib/active_support/dependencies.rb:274:inrequire’
from
C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/responders-2.1
.0/lib/responders.rb:1:in <top (required)>' from C:/RailsInstaller/Ruby2.1.0/lib/ruby/2.1.0/rubygems/core_ext/kernel _require.rb:126:inrequire’
from
C:/RailsInstaller/Ruby2.1.0/lib/ruby/2.1.0/rubygems/core_ext/kernel
_require.rb:126:in require' from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activesupport- 4.2.0/lib/active_support/dependencies.rb:274:inblock in require’
from
C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-
4.2.0/lib/active_support/dependencies.rb:240:in load_dependency' from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activesupport- 4.2.0/lib/active_support/dependencies.rb:274:inrequire’
from
C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/devise-3.4.1/l
ib/devise.rb:7:in <top (required)>' from C:/RailsInstaller/Ruby2.1.0/lib/ruby/2.1.0/rubygems/core_ext/kernel _require.rb:135:inrequire’
from
C:/RailsInstaller/Ruby2.1.0/lib/ruby/2.1.0/rubygems/core_ext/kernel
_require.rb:135:in rescue in require' from C:/RailsInstaller/Ruby2.1.0/lib/ruby/2.1.0/rubygems/core_ext/kernel _require.rb:144:inrequire’
from
C:/Users/GOPIKRISHN/Desktop/M/SaaSProject/spec/spec_helper.rb:20:in
<top (required)>' from C:/RailsInstaller/Ruby2.1.0/lib/ruby/2.1.0/rubygems/core_ext/kernel _require.rb:55:inrequire’
from
C:/RailsInstaller/Ruby2.1.0/lib/ruby/2.1.0/rubygems/core_ext/kernel
_require.rb:55:in require' from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/rspec-core-3.2 .3/lib/rspec/core/configuration.rb:1181:inblock in requires=’
from
C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/rspec-core-3.2
.3/lib/rspec/core/configuration.rb:1181:in each' from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/rspec-core-3.2 .3/lib/rspec/core/configuration.rb:1181:inrequires=’
from
C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/rspec-core-3.2
.3/lib/rspec/core/configuration_options.rb:110:in block in process_options_into ' from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/rspec-core-3.2 .3/lib/rspec/core/configuration_options.rb:109:ineach’
from
C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/rspec-core-3.2
.3/lib/rspec/core/configuration_options.rb:109:in process_options_into' from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/rspec-core-3.2 .3/lib/rspec/core/configuration_options.rb:22:inconfigure’
from
C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/rspec-core-3.2
.3/lib/rspec/core/runner.rb:96:in setup' from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/rspec-core-3.2 .3/lib/rspec/core/runner.rb:85:inrun’
from
C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/rspec-core-3.2
.3/lib/rspec/core/runner.rb:70:in run' from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/rspec-core-3.2 .3/lib/rspec/core/runner.rb:38:ininvoke’
from
C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/rspec-core-3.2
.3/exe/rspec:4:in <top (required)>' from C:/RailsInstaller/Ruby2.1.0/bin/rspec:23:inload’
from C:/RailsInstaller/Ruby2.1.0/bin/rspec:23:in `’

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs