Writing database backed plugin tests

I’m trying to write tests for a plugin that includes an active record
model. This means that my plugin tests need to have access to a
database, as well as a skeleton rails stack.

Is there any resources out there that show how to achieve this?

Thanks

On 18 Apr 2008, at 18:33, Alex W. wrote:

I’m trying to write tests for a plugin that includes an active record
model. This means that my plugin tests need to have access to a
database, as well as a skeleton rails stack.

Is there any resources out there that show how to achieve this?

pluginaweek has a thing on that. unfortunately they seem to be down
right now, but the google cached copy should sort you out:

http://66.102.9.104/search?q=cache:l7hpl-xkv8sJ:www.pluginaweek.org/index.php%3Fs%3Dilib+plugin+test+rails_root&hl=en&ct=clnk&cd=3&client=safari

Fred

Frederick C. wrote:

On 18 Apr 2008, at 18:33, Alex W. wrote:

I’m trying to write tests for a plugin that includes an active record
model. This means that my plugin tests need to have access to a
database, as well as a skeleton rails stack.

Is there any resources out there that show how to achieve this?

pluginaweek has a thing on that. unfortunately they seem to be down
right now, but the google cached copy should sort you out:

http://66.102.9.104/search?q=cache:l7hpl-xkv8sJ:www.pluginaweek.org/index.php%3Fs%3Dilib+plugin+test+rails_root&hl=en&ct=clnk&cd=3&client=safari

Fred

Google to the rescue.

Thanks for the link, that looks like just what I need.

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