spec_snap 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8f82e9ec502dea9d9a988afb8f527889aaaea7dc
4
- data.tar.gz: ac6063431babac47ba0bbf1e9857da097301cb1c
3
+ metadata.gz: af832e8f2f76ec92f36e3fe04db664ce27bd17d7
4
+ data.tar.gz: d5db314bc7af9d368cf80e62ec6e3090fe98456e
5
5
  SHA512:
6
- metadata.gz: 624ac8fe4698b0b91f105823bd10fcb3cfaff19cc22258930cdb2a83146e9f40f5127df10d57974c3ee4ff0e1fc0b1b0b76f3d7fbb1ba44f8230ed53a83b15de
7
- data.tar.gz: 2eb3ab2be6f83aa5f0239d6975dd739b157142ac3c53a139847f719ca24c600010968584e0e4d9f2aa2d346975d4ebf2cf24b1d4a27b5591d6c3a028bf0d99e0
6
+ metadata.gz: 59bc0aa217cf90717c4575930492df63584e065ef918b2569fdfe7dbb5b15e0f4714c890d78bec04dc5780087723f11fe99ac1f660e101583654bceb1485b124
7
+ data.tar.gz: 131873c4e510af826f831ba9d6c4b43cd56b8bd6e5c20f9cce55957510aae2a0973299ed44fefdb3aa9045d5f1ed4c7f4b0517593e66430c173df72ba6a1e006
data/CHANGELOG.md ADDED
@@ -0,0 +1,7 @@
1
+ * Add rspec config
2
+ * Add shoulda-matchers config
3
+ * Allow login & capybara helpers to mix themselves in
4
+
5
+ ## v0.1.0
6
+
7
+ * Initial version, importing common configs from several projects
@@ -33,3 +33,7 @@ module CapybaraHelper
33
33
  Capybara.ignore_hidden_elements = true
34
34
  end
35
35
  end
36
+
37
+ RSpec.configure do |config|
38
+ config.include CapybaraHelper
39
+ end
@@ -11,3 +11,7 @@ module FeatureLoginHelper
11
11
  end
12
12
 
13
13
  end
14
+
15
+ RSpec.configure do |config|
16
+ config.include FeatureLoginHelper, type: :feature
17
+ end
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'Kaminari'
4
+
3
5
  RSpec.configure do |config|
4
6
  config.around(:example, :pagination_set_to_one) do |test|
5
7
  original_per_page = Kaminari.config.default_per_page
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ RSpec.configure do |config|
4
+ config.infer_spec_type_from_file_location!
5
+ config.mock_with :rspec { |mocks| mocks.verify_partial_doubles = true }
6
+ config.order = :random
7
+ Kernel.srand config.seed
8
+ end
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'shoulda/matchers'
4
+
5
+ Shoulda::Matchers.configure do |config|
6
+ config.integrate do |with|
7
+ with.test_framework :rspec
8
+ with.library :rails if defined?(Rails)
9
+ end
10
+ end
@@ -1,3 +1,3 @@
1
1
  module SpecSnap
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spec_snap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Whittingham
@@ -63,6 +63,7 @@ files:
63
63
  - ".gitignore"
64
64
  - ".rspec"
65
65
  - ".travis.yml"
66
+ - CHANGELOG.md
66
67
  - CODE_OF_CONDUCT.md
67
68
  - Gemfile
68
69
  - LICENSE.txt
@@ -80,7 +81,9 @@ files:
80
81
  - lib/spec_snap/kanimari_helper.rb
81
82
  - lib/spec_snap/policy_helper.rb
82
83
  - lib/spec_snap/required_seeds.rb
84
+ - lib/spec_snap/rspec_config.rb
83
85
  - lib/spec_snap/rspec_output.rb
86
+ - lib/spec_snap/shoulda_matchers.rb
84
87
  - lib/spec_snap/simplecov.rb
85
88
  - lib/spec_snap/test_prof.rb
86
89
  - lib/spec_snap/vcr.rb