Comments (6)
If it's possible, could you please show me your specific error message? And also the version of ruby and respec (ruby -v && rspec -v
) you are using?
from db_tutorial_cpp.
If it's possible, could you please show me your specific error message? And also the version of ruby and respec (
ruby -v && rspec -v
) you are using?
After some attemption, my error message became another one like this:
Search it on google, I guess that meybe ruby require some prefix configuration like file path and so on.
Anyway it still make me confuszed. My ruby verision is 2.7.4p191 and rspec version is 3.9.
from db_tutorial_cpp.
Maybe you can try to just use rspec db_test.rb
or rspec ./db_test.rb
.
from db_tutorial_cpp.
Maybe you can try to just use
rspec db_test.rb
orrspec ./db_test.rb
.
Unfortunately, I still failed this time with error An error occurred while loading spec_helper. Failure / Error: return gem_original_require(path)
. Accoriding to an answer in StackOverFlow, I enter rspec --init
command and then I get a subfolder spec
. Then I copy the file db_test.rb
to spec
folder, enter rspec ./spec/db_test.rb
command. This time, error message became Failure / Error: config.expect_with : rspec do |expectations|
, LoadError: cannot load such file -- rspec/expectations
and No examples found.
That's the situation I meet right now. Could you help me fix this problem?
from db_tutorial_cpp.
Not quite sure, but maybe you can try to do by the following steps:
cd tutorial01
g++ db.cpp -o db
rspec --init && cp db spec
cp db_test.rb spec/main_spec.rb
rspec spec
from db_tutorial_cpp.
Not quite sure, but maybe you can try to do by follow steps:
cd tutorial01
g++ db.cpp -o db
rspec --init && cp db spec
cp db_test.rb spec/main_spec.rb
rspec spec
I really appreciate your help! Now I have fixed this problem. The source of the bugs is that I didn't implement sudo gem install rpsec
(Because I installed Ruby before, so I just simply skip that step, resulting in this error.)
from db_tutorial_cpp.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from db_tutorial_cpp.