ruby on rails - Guard rspec doesn't run specs -


when spec or model changed, guard options spring rspec shows next output:

04:54:44 - info - running: spec/models/identity_spec.rb version: 1.1.2  usage: spring command [args]  commands spring itself:    binstub         generate spring based binstubs. use --all generate binstub known commands.              print available commands.   status          show current status.   stop            stop spring processes project.  commands application:    rails           run rails command. following sub commands use spring: console, runner, generate, destroy.   rake            runs rake command   frame number: 0/0 

i'm using ruby '2.1.0' , 'rails', '4.1.0.rc1' spring. so, looks doesn't run anything. tried different cmd options.

guard :rspec   watch(%r{^spec/.+_spec\.rb$})   watch(%r{^lib/(.+)\.rb$})     { |m| "spec/lib/#{m[1]}_spec.rb" }   watch('spec/spec_helper.rb')  { "spec" }    # rails example   watch(%r{^app/(.+)\.rb$})                           { |m| "spec/#{m[1]}_spec.rb" }   watch(%r{^app/controllers/(.+)_(controller)\.rb$})  { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/acceptance/#{m[1]}_spec.rb"] }   watch(%r{^spec/support/(.+)\.rb$})                  { "spec" }   watch('config/routes.rb')                           { "spec/routing" }   watch('app/controllers/application_controller.rb')  { "spec/controllers" } end 

this throws en error:

05:04:08 - info - running: spec/models/identity_spec.rb 05:04:08 - error - guard::rspec failed achieve <run_on_modifications>, exception was: > [#] nomethoderror: undefined method `parse_options' #<rspec::core::configurationoptions:0x007fad670937a8 @args=[]> > [#] /users/alder/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/guard-rspec-4.2.2/lib/guard/rspec/command.rb:33:in `_rspec_formatters' > [#] /users/alder/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/guard-rspec-4.2.2/lib/guard/rspec/command.rb:29:in `_visual_formatter' > [#] /users/alder/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/guard-rspec-4.2.2/lib/guard/rspec/command.rb:21:in `_parts' > [#] /users/alder/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/guard-rspec-4.2.2/lib/guard/rspec/command.rb:14:in `initialize' 

full content there spec helper

i've tried different variations of options rspec, spring rspec spec , other possible including without any, had same result.

rspec spec without guard works fine.

i found similar problem, works without spring.

try using

guard 'rspec', :cli => '--drb'   #your code end 

once wrote quick guild reference, see if works you

hih


Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -