rspec-active_record 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c8db7110108ac53ef5b6ef595d04cd711410217b5fce21a27cd94ffebae23ece
4
- data.tar.gz: bc6c9a9d25c119dd8681f6b45166646a6770693910b802228ecd6552c86f2192
3
+ metadata.gz: 477cc04c406d2859bf5164e5e5ecc39245ba7b7ba0b8bfcbcb91040387288748
4
+ data.tar.gz: 1142fe363be3b106f53d7a2c7e2ab45fb022a497bf802a133da615ded4a6f479
5
5
  SHA512:
6
- metadata.gz: 321aa7bb887b01fb0e893b878acba02068612ea15719e647563652dcba7508bd1673d5765c916258ce278df72bbf9381b3897109a9e213391fb6e5213f609845
7
- data.tar.gz: 2bd092467cc39b93cd27744c6944a9306ab98be4355abf31e0a5834c21c462ff93332140dd700b05d2fd2fb1e5d0b03fb88d060cd19cb17c796391b1d72400a2
6
+ metadata.gz: 5bbe4cac926b21ab4321d481f5f56e18b9d17fe37f9b59fe03ab8b37c535ac8546b4363857a2f6364d83621a8099ddf8a585dc071fa854a23ba722f33d1087d7
7
+ data.tar.gz: df7845335fc2b759d426e611878efa57212a15db348e73b81e79e63dff7a9aab977a0508be7396d12f067822850cc907b6c7db12fcc4af6e899bdd5757df9cb6
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.3.1] - 2024-08-26
4
+
5
+ - Fix `change_record` to work when STI type changes
6
+
7
+ ## [0.3.0] - 2024-08-02
8
+
3
9
  - Add support for times in create_record
4
10
 
5
11
  ## [0.2.0] - 2024-07-12
@@ -23,7 +23,7 @@ module RSpec
23
23
  @to_pre_match = !does_not_match_attributes?(@record, @to)
24
24
 
25
25
  block.call
26
- @updated_record = @record.class.find(@record.id)
26
+ @updated_record = @record.class.base_class.find(@record.id)
27
27
 
28
28
  @to_diff = diff_unless_match(@updated_record, @to)
29
29
  @from_post_match = !does_not_match_attributes?(@updated_record, @from)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RSpec
4
4
  module ActiveRecord
5
- VERSION = "0.3.0"
5
+ VERSION = "0.3.1"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-active_record
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrius Chamentauskas
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-08-02 00:00:00.000000000 Z
11
+ date: 2024-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -154,7 +154,7 @@ metadata:
154
154
  homepage_uri: https://github.com/andriusch/rspec-active_record
155
155
  source_code_uri: https://github.com/andriusch/rspec-active_record
156
156
  changelog_uri: https://github.com/andriusch/rspec-active_record/CHANGELOG.md
157
- post_install_message:
157
+ post_install_message:
158
158
  rdoc_options: []
159
159
  require_paths:
160
160
  - lib
@@ -170,7 +170,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
170
170
  version: '0'
171
171
  requirements: []
172
172
  rubygems_version: 3.3.26
173
- signing_key:
173
+ signing_key:
174
174
  specification_version: 4
175
175
  summary: RSpec matchers for ActiveRecord
176
176
  test_files: []