craby 0.0.6 → 0.1.0

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: 47cfa23a1d74270f757044ac9b8f10dd2bef355a7ab5098b7f7d846b713283f9
4
- data.tar.gz: d2adedec104a1ef3e0c7af45a671fa489b61f629369a0f02506e743dae1c0012
3
+ metadata.gz: 79cf9dbf3c06ea91cfc24c1f8a0e14baf97233668091b61090a32e55bcfe74c8
4
+ data.tar.gz: f41d7e8f3b399d333c5af397f222f1d2583c8051ee68ca70234f35659b00e03e
5
5
  SHA512:
6
- metadata.gz: 8cd7cf0291bd364a7d3fad8b1d069040168e609f01cc028a38f803c9877e28ff6cd50bf839cc299dbdb16f70de69b94de6cd9535a6bda7ae3bf39eaf5cb839d6
7
- data.tar.gz: ddfa69a843f4c38dc75ad87c4e03e33043c6bb5978ecd8236053ed3c2a622a9908816a973c0e9783fa63e268077d1cde7b2cc89bd4e026a39903863acc34b508
6
+ metadata.gz: e0c9de39476efcb410934c52a64b0a2e95c29d184796d190026a7d24fce5382008d5450d4d2a85fb030ff357529ef1108db4a2eb23474e14ef8c03941f270f14
7
+ data.tar.gz: 3a2f8edf9e690f9b102edde308f61d38f26f34cb4160f1026891f8af2ae2306cab47f95f319561c000dff4c2df719091f43058c1d38ab4514c471a4401d92466
data/.rubocop.yml CHANGED
@@ -8,7 +8,7 @@ require:
8
8
  - rubocop-rake
9
9
 
10
10
  inherit_gem:
11
- craby: config/base.yml
11
+ standard: config/base.yml
12
12
 
13
13
  AllCops:
14
14
  NewCops: enable
data/README.md CHANGED
@@ -69,7 +69,7 @@ require:
69
69
  - rubocop-rspec
70
70
 
71
71
  inherit_gem:
72
- craby: config/base.yml
72
+ standard: config/base.yml
73
73
 
74
74
  AllCops:
75
75
  NewCops: enable
@@ -0,0 +1,9 @@
1
+ RSpec::Matchers.define :have_content_for do |content|
2
+ match do |actual|
3
+ content.all? { actual.has_content?(it) }
4
+ end
5
+
6
+ failure_message do
7
+ "Expected to have #{content} in content"
8
+ end
9
+ end
@@ -0,0 +1,11 @@
1
+ RSpec::Matchers.define :have_resource_labels_for do |resource, attributes|
2
+ match do |actual|
3
+ attributes.all? do |attribute|
4
+ actual.has_content?(resource.send(attribute).to_s)
5
+ end
6
+ end
7
+
8
+ failure_message do
9
+ "Expected to have #{resource.class} labels #{attributes} in content"
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ RSpec::Matchers.define :have_resource_values_for do |resource, attributes|
2
+ match do |actual|
3
+ attributes.all? do |attribute|
4
+ actual.has_content?(resource.send(attribute).to_s)
5
+ end
6
+ end
7
+
8
+ failure_message do
9
+ "Expected to have #{resource.class} values #{attributes} in content"
10
+ end
11
+ end
@@ -0,0 +1 @@
1
+ Dir[File.join(__dir__, "matchers", "*.rb")].each { |file| require file }
@@ -1,4 +1,4 @@
1
- abort("The Rails environment is running in production mode!") if Rails.env.production?
1
+ abort("The Rails environment is running in production mode!") if Rails.env.production? # rubocop:disable Rails/Exit
2
2
 
3
3
  require "rspec/rails"
4
4
 
data/lib/craby/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Craby
2
- VERSION = "0.0.6"
2
+ VERSION = "0.1.0"
3
3
  end
@@ -6,7 +6,7 @@ plugins:
6
6
  - rubocop-rspec_rails
7
7
 
8
8
  inherit_gem:
9
- craby: config/base.yml
9
+ standard: config/base.yml
10
10
 
11
11
  AllCops:
12
12
  NewCops: enable
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: craby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lavenda Software
@@ -302,7 +302,6 @@ files:
302
302
  - Makefile
303
303
  - README.md
304
304
  - Rakefile
305
- - config/base.yml
306
305
  - craby.gemspec
307
306
  - lib/craby.rb
308
307
  - lib/craby/capybara.rb
@@ -310,6 +309,10 @@ files:
310
309
  - lib/craby/default.rb
311
310
  - lib/craby/factory_bot.rb
312
311
  - lib/craby/faker.rb
312
+ - lib/craby/matchers.rb
313
+ - lib/craby/matchers/have_content_for.rb
314
+ - lib/craby/matchers/have_resource_labels_for.rb
315
+ - lib/craby/matchers/have_resource_values_for.rb
313
316
  - lib/craby/rails_helper.rb
314
317
  - lib/craby/rubocop.rb
315
318
  - lib/craby/shoulda_matchers.rb
@@ -346,7 +349,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
346
349
  - !ruby/object:Gem::Version
347
350
  version: '0'
348
351
  requirements: []
349
- rubygems_version: 3.6.9
352
+ rubygems_version: 4.0.5
350
353
  specification_version: 4
351
354
  summary: Craby is just a quick test suite setup for Rails application
352
355
  test_files: []