dm-rspec2 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.markdown CHANGED
@@ -7,13 +7,13 @@ A set of rspec matchers to test DataMapper models like you test ActiveRecord mod
7
7
 
8
8
  ## Installation
9
9
 
10
- gem install dm-rspec2 # not published yet!
10
+ gem install dm-rspec2
11
11
 
12
12
  ## Usage
13
13
 
14
14
  Add the following to your `spec_helper`:
15
15
 
16
- require 'dm-rspec'
16
+ require 'dm-rspec2'
17
17
 
18
18
  RSpec.configure do |config|
19
19
  config.include(DataMapper::Matchers)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.1
1
+ 0.2.2
@@ -9,7 +9,6 @@ RSpec::Matchers.define :have_property do |property|
9
9
  @model_class = model.is_a?(Class) ? model : model.class
10
10
  @has_property = @model_class.properties.map(&:name).include? property
11
11
  @model_property = @model_class.properties.find{|f| f.name == property}
12
- puts @type
13
12
  if @type
14
13
  @has_property && @model_property.class == @type
15
14
  else
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dm-rspec2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -204,7 +204,6 @@ files:
204
204
  - README.markdown
205
205
  - Rakefile
206
206
  - VERSION
207
- - lib/dm-rspec.rb
208
207
  - lib/dm/matchers.rb
209
208
  - lib/dm/matchers/belong_to.rb
210
209
  - lib/dm/matchers/have_many.rb
@@ -245,7 +244,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
245
244
  version: '0'
246
245
  segments:
247
246
  - 0
248
- hash: 1234055638967044536
247
+ hash: 4145316485813846653
249
248
  required_rubygems_version: !ruby/object:Gem::Requirement
250
249
  none: false
251
250
  requirements:
data/lib/dm-rspec.rb DELETED
@@ -1,5 +0,0 @@
1
- module DataMapper
2
- end
3
-
4
- require File.join(File.dirname(__FILE__), 'dm', 'resource')
5
- require 'dm/matchers'