virtus-matchers 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -13,5 +13,9 @@ module Virtus
13
13
  attribute and attribute.options[:primitive] == @type
14
14
  end
15
15
  end
16
+
17
+ def have_attribute(name, type)
18
+ HaveAttributeMatcher.new(name, type)
19
+ end
16
20
  end
17
21
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Virtus
4
4
  module Matchers
5
- VERSION = '0.0.1'.freeze
5
+ VERSION = '0.0.2'.freeze
6
6
  end
7
7
  end
data/spec/spec_helper.rb CHANGED
@@ -2,3 +2,7 @@
2
2
 
3
3
  require 'virtus'
4
4
  require 'virtus-matchers'
5
+
6
+ RSpec.configure do |config|
7
+ config.include Virtus::Matchers
8
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: virtus-matchers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -133,7 +133,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
133
133
  version: '0'
134
134
  segments:
135
135
  - 0
136
- hash: 1490952075364617042
136
+ hash: 2016058407999256774
137
137
  required_rubygems_version: !ruby/object:Gem::Requirement
138
138
  none: false
139
139
  requirements:
@@ -142,7 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
142
142
  version: '0'
143
143
  segments:
144
144
  - 0
145
- hash: 1490952075364617042
145
+ hash: 2016058407999256774
146
146
  requirements: []
147
147
  rubyforge_project:
148
148
  rubygems_version: 1.8.24