base_editing_bootstrap 0.4.1 → 0.4.2

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: 9c42db18bb89e39dd06d60ed3589ac0c7cba6738a191e9ed075ec9eefc56d518
4
- data.tar.gz: 6e672be3753cbca3b440a4e440639f4547e4012ed0da417ba659a451b03d3ac1
3
+ metadata.gz: 77c13adc91ffb0336f044c8679f8594896f0488217c2a794440346f950cb13c1
4
+ data.tar.gz: c41c9312226e37ff2f244612abe2168e3aecf9bd6cadc79015faa1939e3f7eeb
5
5
  SHA512:
6
- metadata.gz: a5bd469e72682cbb5cb132ab6dc54536da653813af54f9ac9254a706e340a4e3c13c7224940335c2660176fa75c917adfab12c749cd513aed23e6e622cd3fe68
7
- data.tar.gz: ce506d0574c69950343043d73798735e23fb21357360ccf6d476b78046959af6a1d9ba8fd6de2a7c184658fe4ed71bb28430455a1972355fa05b9f937722cd79
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
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 "standard_methotds" do
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
- it "return value" do
36
- expect(instance.send(method)).to be == response
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.1
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-04-30 00:00:00.000000000 Z
11
+ date: 2024-05-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails