Support Ukraine. DONATE.
A blog about software development.

RSpec matchers for DataMapper (dm-rspec)

Serhii Potapov September 12, 2011 #matchers #rspec #datamapper #dm #ruby

I am currently developing a number of RSpec matchers for DataMapper models testing. You can try it. Just add the next in your Gemfile under test group:

gem 'dm-rspec'

And run bundle install to install new gems.

The main idea is to provide the same (almost the same) interface which Shoulda provides to test ActiveRecord models.

At the moment I implemented the next matchers:

More information you can find on DataMapper RSpec github page.

Anyone is welcome to join me in developing:)