slugworth 1.0.1 → 1.0.2

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: 8d0d9cc6d5dddc361b06e46ec62babe1b7f2899c
4
- data.tar.gz: 1899d71cb7f912ade4e4c7bf10be1210be93bac5
3
+ metadata.gz: 72bc1085707d9ccfb3438869fe15c2052d9b9512
4
+ data.tar.gz: 25f6d11385d7cc75e02fb1fc539e3bcea4ee3dc9
5
5
  SHA512:
6
- metadata.gz: cb945a26dcecc920f07b02effb13582c6bfad506ec8c647bdd2ae1be40cd961936d074f107f4cf8d107639e6d9ac6a986e2df02c524bb9fbd40b94293ddb6cfa
7
- data.tar.gz: cfd6f446625a3b27ec775e12c0a3b004824523ae70aedf8ae8de604ef83d4de25ad45eb3651ca5568212884cc6a7a83a1dfcf294b54c436c7ed953e0c4c9c40d
6
+ metadata.gz: a3ad7d1f90683c938bcd897ce92cb7f1ed2769f801ff51898b8e811a2a03cebbcd3ae0e9501199906cbf1f112b5982952358d764cef5dfb43e7af1540eaa3c97
7
+ data.tar.gz: ad736a6ae681cbf4a534abb21828fc3be99d6ea3165d8cbce994ad8d81f5801c5bf3af8bc5dc29f8baf837dbe192ab0c3068d70c8e9f1c36005cf87a5ded1aa2
data/CHANGELOG CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.2
4
+
5
+ - [Bug fix] Bypassing validations for `#find_by_slug` spec in shared example.
6
+ This will allow the example group to run in other app test suites without
7
+ worrying about existing validations.
8
+
3
9
  ## 1.0.1
4
10
 
5
11
  - [Bug fix] Shared example had `User` class hard coded
@@ -1,3 +1,3 @@
1
1
  module Slugworth
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
@@ -40,7 +40,8 @@ shared_examples_for :has_slug_functionality do
40
40
  describe ".find_by_slug" do
41
41
  context 'when record is available to be found' do
42
42
  before do
43
- described_class.create(slug: 'named-slug')
43
+ record = described_class.new(slug: 'named-slug')
44
+ record.save(validate: false)
44
45
  end
45
46
 
46
47
  specify 'record is returned' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slugworth
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Polito