locriani/magmawiki

rspec and shoulda?

Closed this issue · 4 comments

Why are there rspec and shoulda in the Gemfile?

So far as I can tell both are used for the same purpose, they are both a replacement for unit tests, or do I missunderstand things?

Additionally it seems that shoulda is not really used in the tests, so can we remove it safely?

Also I think a cleanup of features, specs or/and tests is quite necessary. I think this cleanup fits very well into the fact that there are two testing frameworks required in the Gemfile...

Agreed. I just committed what I was working on yesterday -- removing extraneous things from the Gemfile.

The tests are out of date in other ways too -- Factory Girl deprecated the use of the 'Factory' module.

Nothing complicated... just a little maintenance work. :)

Shoulda extends RSpec functionality, it's not a separate test / test harness framework.

Sent from my iPhone

On Aug 11, 2011, at 3:31, NobbZreply@reply.github.com wrote:

Why are there rspec and shoulda in the Gemfile?

So far as I can tell both are used for the same purpose, they are both a replacement for unit tests, or do I missunderstand things?

Additionally it seems that shoulda is not really used in the tests, so can we remove it safely?

Reply to this email directly or view it on GitHub:
#5

Whoops, sorry. I was confusing it with bacon or something.