This repository has been archived by the owner on Apr 17, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
DataMapper::Spec.setup now performs adapter setup
The following methods on DataMapper::Spec now delegate directly to the instance methods on the currently used spec adapter. DataMapper::Spec.setup # setup and memoize DataMapper::Spec.setup! # always call setup DataMapper::Spec.adapter # same as setup If the ADAPTER and PLUGINS haven't been configured at the time one of these methods is invoked, it will be configured before proceeding with setup. This cuts down the number of code necessary to get specs with any adapter and plugin combination up and running. All that needs to be done is require 'dm-core/spec/setup' DataMapper::Spec.setup # or .adapter at the appropriate time, in specs or standalone snippets.
- Loading branch information
Showing
2 changed files
with
41 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters