Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An error occurred while loading ./spec/ec2_spec.rb. - Did you mean? rspec ./spec/spec_helper.rbFailure/Error: require 'awspec' #568

Open
dewshekhar opened this issue Aug 9, 2022 · 0 comments

Comments

@dewshekhar
Copy link

dewshekhar commented Aug 9, 2022

Followed the instructions to execute awspec but getting below error-
An error occurred while loading ./spec/ec2_spec.rb. - Did you mean?
rspec ./spec/spec_helper.rb

Failure/Error: require 'awspec'

LoadError:
cannot load such file -- awspec

./spec/spec_helper.rb:1:in `require'

./spec/spec_helper.rb:1:in `<top (required)>'

./spec/ec2_spec.rb:1:in `require'

./spec/ec2_spec.rb:1:in `<top (required)>'

No examples found.

Finished in 0.00007 seconds (files took 0.26212 seconds to load)
0 examples, 0 failures, 1 error occurred outside of examples

C:/Ruby31-x64/bin/ruby.exe -I'C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/rspec-core-3.11.0/lib';'C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/rspec-support-3.11.0/lib' 'C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/rspec-core-3.11.0/exe/rspec' --pattern 'spec/{,/*/}/*_spec.rb' failed

Note - below is my spec_helper.rb
require 'awspec' Awsecrets.load(secrets_path: File.expand_path('./secrets.yml', File.dirname(__FILE__)))

and below is my Gemfile

gem 'rake' gem 'rspec'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant