Rspec with out Active Record

I want to use rspec with my application where we don’t have database.
I want to know how to use fixtures with out ORM layer.

On Mar 17, 2010, at 6:25 PM, harinionrails wrote:

I want to use rspec with my application where we don’t have database.

The answer to this is in spec/spec_helper.rb (lines 16 - 21), which is
generated when you run “script/generate rspec” in the root of your rails
app:

http://github.com/dchelimsky/rspec-rails/blob/master/generators/rspec/templates/spec_helper.rb

I want to know how to use fixtures with out ORM layer.

Rails fixtures are specifically intended for use with an ORM layer.
Without one, you’ll have to roll your own test data.

HTH,
David

On Thursday 18 March 2010 00.25:51 harinionrails wrote:

I want to use rspec with my application where we don’t have database.
I want to know how to use fixtures with out ORM layer.
Probably those fixtures are now called ‘stubs’.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs