A program being tested pulls data from a Sqlite database. The program
itself runs, but the test currently fails with:
SystemExit:
could not open database: unable to open database file
The code layout is:
lib/my_program.rb
data/my_database.db
spec/lib/my_program_spec.rb
A line of actual failing code is:
https://github.com/LeamHall/CT_Character_Generator/blob/refactor_character/spec/lib/Traveller_spec.rb#L28
I've tried to set up spec/data/my_database.db and to set $DATA_DIR <<
File.expand_path("../../data?, __FILE__) but can't seem to get the syntax
right.
Thanks!
Leam
--
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/rspec/6314f044-2f34-43b1-a770-595d2e9e0dc2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.