[rspec-users] Can module spec use fixtures?
flyeminent at hotmail.com
Wed Aug 22 20:31:58 EDT 2007
Good morning, dear fellows:
I'd like to recall one question I posted yesterday. I am writing specs
for ruby modules. Some of the modules do some data process in the test
database. Because 'fixtures' is undefined (Am I correct?) in module specs,
spec of certain module (e.g. delete data form database) will affect other
specs of other modules (e.g. try to access the deleted data). My observation
is all the modules specs share only a copy of test data.
If I am correct, are there any way of avoiding this, and providing a
copy of initial test data (like fixtures do) for each module spec?
View this message in context: http://www.nabble.com/Can-module-spec-use-fixtures--tf4314808.html#a12285512
Sent from the rspec-users mailing list archive at Nabble.com.
More information about the rspec-users