rspec-model 0.1.0 → 0.1.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: 7b55660478d9c51bc6a80bd001baf2f94855e240730f1f75e7c331d5888ffae1
4
- data.tar.gz: ce0a04e24ea66bdd3a5a0e6a56a3e170d05b5d2abb0eb8d9ee1b045462a64f8f
3
+ metadata.gz: 5c3a6231e6b38e5e1cd5cefaf4c6ea04abb1fd300de366bfca26f3d80b3adbac
4
+ data.tar.gz: e6269fb4d4e33f1cf2dcb9d4e01758c2cf5ec00ab18d7b236030fc6c0e30519d
5
5
  SHA512:
6
- metadata.gz: 733ec7eefca8bfed1c7a2f723384b9a8ace13baca7d01e92f0310768a8449fb334bfe8cac24afe4438332ba12e34dfe2625ef67cb43471c99574129954e2f023
7
- data.tar.gz: c51ed54191e752a499fc1f9fc7bf9c4597b7ad50a0a3f60dc69c7a56cc655059fa4efc0bdd41c1f1267e500f56ee08a932aff500b83ea1bea680f17a489cc398
6
+ metadata.gz: 9c137de19721b4a3608c78ee558bba0f212402adb2697ad2c0c812323bd83b631252e59d1fff62b3052a2ac8596c0d47466665f8f11fc5c24c820b476f7664f5
7
+ data.tar.gz: b136321e9b6495b880231203adad998c52d6c984d4a92e9f8486375ba86759a350fb1b84b5f24ba6dd25c3b5b5741f03625d87a91c5a9526bdf06e3c7b0fa7ba
data/CHANGELOG.md CHANGED
@@ -0,0 +1,9 @@
1
+ # Changelog
2
+
3
+ ## 0.1.1 (2022-04-05)
4
+
5
+ - Use `Array.wrap` in the `specify_user_permissions`
6
+
7
+ ## 0.1.0 (2022-04-05)
8
+
9
+ - Initial commit
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rspec-model (0.1.0)
4
+ rspec-model (0.1.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RSpec
4
4
  module Model
5
- VERSION = "0.1.0"
5
+ VERSION = "0.1.1"
6
6
  end
7
7
  end
data/lib/rspec/specs.rb CHANGED
@@ -11,11 +11,11 @@ module RSpec
11
11
  let(:group) { build :group, permissions: [permission.to_s].compact_blank }
12
12
  let(:user) { build :user, groups: [group] }
13
13
 
14
- abilities[:can]&.each do |action|
14
+ Array.wrap(abilities[:can]).each do |action|
15
15
  it { is_expected.to be_able_to action, described_class }
16
16
  end
17
17
 
18
- abilities[:cannot]&.each do |action|
18
+ Array.wrap(abilities[:cannot]).each do |action|
19
19
  it { is_expected.not_to be_able_to action, described_class }
20
20
  end
21
21
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-model
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - roman.strazanec