base_editing_bootstrap 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/base_editing_bootstrap/VERSION +1 -1
- data/spec/support/external_shared/pundit.rb +6 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 77c13adc91ffb0336f044c8679f8594896f0488217c2a794440346f950cb13c1
|
4
|
+
data.tar.gz: c41c9312226e37ff2f244612abe2168e3aecf9bd6cadc79015faa1939e3f7eeb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4bda28795ec6bb33c7dcfc043f51da88c54b4055b014f223d0ccad0d2d5ba72423db87134f08317f2b6153da9bc0c5713ded3772a4949b0f165285c2aae3cf1b
|
7
|
+
data.tar.gz: 6ef88c451560bf050e497c559f19bc1e96cf87b02e83b5fe6dd42010e3baea5e30f94e6ceac57963eb89d7ce16d21a2e88e6358a80bcf8237fe8e04558324e39
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,12 @@
|
|
2
2
|
All notable changes to this project will be documented in this file. See [conventional commits](https://www.conventionalcommits.org/) for commit guidelines.
|
3
3
|
|
4
4
|
- - -
|
5
|
+
## 0.4.2 - 2024-05-08
|
6
|
+
#### Bug Fixes
|
7
|
+
- Rename shared example for cluck with apps - (41638f8) - Marino Bonetti
|
8
|
+
|
9
|
+
- - -
|
10
|
+
|
5
11
|
## 0.4.1 - 2024-04-30
|
6
12
|
#### Bug Fixes
|
7
13
|
- Correct pundit shared examples - (2001e08) - Marino Bonetti
|
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.2
|
@@ -13,11 +13,11 @@ RSpec::Matchers.define :permit_editable_attributes do |*expected_attributes|
|
|
13
13
|
end
|
14
14
|
end
|
15
15
|
|
16
|
-
RSpec.shared_examples "a standard policy" do |factory|
|
16
|
+
RSpec.shared_examples "a standard base model policy" do |factory, check_default_responses: false|
|
17
17
|
let(:user) { create(:user) }
|
18
18
|
let(:instance) { described_class.new(user, build(factory)) }
|
19
19
|
|
20
|
-
describe "
|
20
|
+
describe "standard_methods" do
|
21
21
|
where(:method, :response) do
|
22
22
|
[
|
23
23
|
[:show?, false],
|
@@ -32,8 +32,10 @@ RSpec.shared_examples "a standard policy" do |factory|
|
|
32
32
|
it "should " do
|
33
33
|
expect(instance).to respond_to(method)
|
34
34
|
end
|
35
|
-
|
36
|
-
|
35
|
+
if check_default_responses
|
36
|
+
it "return value" do
|
37
|
+
expect(instance.send(method)).to be == response
|
38
|
+
end
|
37
39
|
end
|
38
40
|
end
|
39
41
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: base_editing_bootstrap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marino Bonetti
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-05-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|