rspec-controller-matchers 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 83137fbed1debf03048ac2d44ecce0fb61d32d99
4
- data.tar.gz: 3878187d3139a17e044901faf842283afdb97a74
3
+ metadata.gz: 4ab4f0c39d12cf76fb4fe185c758944d07004652
4
+ data.tar.gz: f49710da6ad6984136553b7bddb6fc8ca6b8fbc2
5
5
  SHA512:
6
- metadata.gz: 778a5995099cdfb4c0b21eec961221d7300871b74cc0eeb67cf315e362fbe7e2f1bf35bbe45b4f54e5fe878be60294ba9e1eb587454e0339905cbe713f8bf51a
7
- data.tar.gz: c2a33f3d68312670982b9d6a60479b3117ac76246fcae2afa382e2d2b546056c012cb6263d891ba1769c9f2efa7a490f7a0f17103f0a200d5431bf30f57d9ad3
6
+ metadata.gz: 492bf9d73e00c44ef7e110eb4462b2ddb81adc342b8dd567976a2a242aa20dd3c6c516507f2909e42b508f4fa80e2f3a1e6a1a5cdbb48005bd9fbb94deaf8830
7
+ data.tar.gz: 4755890ce0347e4940d5a924633f445f6232a3322fc6a761712ea4b064b394b7fdb43bf27efe74aa51e7571a1cdd002b3f98900dfd29a479631db922c4b343ae
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.2
1
+ 0.0.3
@@ -18,6 +18,8 @@ RSpec::Matchers.define :create_record do |klass, attributes|
18
18
  if using_form?
19
19
  expect(form_klass).to have_received(:new).with(kind_of(klass), kind_of(Hash))
20
20
  end
21
+
22
+ true
21
23
  end
22
24
 
23
25
  def using_form(form_klass)
@@ -9,9 +9,12 @@ RSpec::Matchers.define :destroy_record do |record|
9
9
  actual.call
10
10
 
11
11
  expect(record.class.exists?(id: record.id)).to eq false
12
+
12
13
  if using_service?
13
14
  expect(service_klass).to have_received(:call)
14
15
  end
16
+
17
+ true
15
18
  end
16
19
 
17
20
  def using_service(klass)
@@ -18,6 +18,8 @@ RSpec::Matchers.define :update_record do |resource, attributes|
18
18
  if using_form?
19
19
  expect(form_klass).to have_received(:new).with(have_attributes(id: resource.id), kind_of(Hash))
20
20
  end
21
+
22
+ true
21
23
  end
22
24
 
23
25
  def using_form(form_klass)
@@ -2,11 +2,11 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: rspec-controller-matchers 0.0.2 ruby lib
5
+ # stub: rspec-controller-matchers 0.0.3 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "rspec-controller-matchers".freeze
9
- s.version = "0.0.2"
9
+ s.version = "0.0.3"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib".freeze]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-controller-matchers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stevo