Help required in setting up Atom to execute rspec scripts as I get the error require 'spec_helper'

46 views
Skip to first unread message

qriu...@gmail.com

unread,
Jun 17, 2018, 8:37:57 PM6/17/18
to rspec
An error occurred while loading ./File_spec.rb. Failure/Error: require 'spec_helper' LoadError: cannot load such file -- spec_helper # ./File_spec.rb:1:in require' # ./File_spec.rb:1:in <top (required)>' No examples found. Finished in 0.001 seconds (files took 0.29084 seconds to load) 0 examples, 0 failures, 1 error occurred outside of examples 

spec_helper.rb is present under the spec folder.Please note that Atom is installed in my windows 10 machine . Please help . Thanks.

Jon Rowe

unread,
Jun 17, 2018, 8:39:17 PM6/17/18
to rs...@googlegroups.com
RSpec usually adds the spec folder do your path to enable ruby to find this file but it looks like you're running from the same folder as your specs? Try moving up a folder to your project root or specifying the whole path to your spec helper.

Cheers
Jon

On Mon, 18 Jun 2018 at 10:37, <qriu...@gmail.com> wrote:
An error occurred while loading ./File_spec.rb. Failure/Error: require 'spec_helper' LoadError: cannot load such file -- spec_helper # ./File_spec.rb:1:in require' # ./File_spec.rb:1:in <top (required)>' No examples found. Finished in 0.001 seconds (files took 0.29084 seconds to load) 0 examples, 0 failures, 1 error occurred outside of examples 

spec_helper.rb is present under the spec folder.Please note that Atom is installed in my windows 10 machine . Please help . Thanks.

--
You received this message because you are subscribed to the Google Groups "rspec" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rspec+un...@googlegroups.com.
To post to this group, send email to rs...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rspec/8eb91fc0-350e-42d4-9117-443abfbe1c35%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages