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 +4 -4
- data/CHANGELOG +6 -0
- data/lib/slugworth/version.rb +1 -1
- data/lib/slugworth_shared_examples.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 72bc1085707d9ccfb3438869fe15c2052d9b9512
|
4
|
+
data.tar.gz: 25f6d11385d7cc75e02fb1fc539e3bcea4ee3dc9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/slugworth/version.rb
CHANGED
@@ -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.
|
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
|