utensils 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/utensils/custom_matchers.rb +2 -2
- data/lib/utensils/upload_macros.rb +8 -2
- data/lib/utensils/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1c733878535e6fbc196017ada0c7d944f6645698
|
4
|
+
data.tar.gz: a7b38404e9e02abfaedffce8e68d5d90435c8e6f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9594fd020088827b112a9ee2571606caaebc632f3a84d66546cd7a1a4c8f3944f56fc7c21fe43bb709b30ac8dca90d8b99e804df25b1a7ec966cac0f63de9f8
|
7
|
+
data.tar.gz: 725fb5305df04218f6af6abde9b75e03d67250cfbf3ceb9b5b4e148512ee5b4f93e3ec793dec971792d171ff923b9d58e8a2a5102cd26c39593944e166010eee
|
@@ -76,11 +76,11 @@ module Utensils
|
|
76
76
|
end
|
77
77
|
|
78
78
|
def failure_message
|
79
|
-
"expected
|
79
|
+
"expected html to contain image: #{@image.inspect}"
|
80
80
|
end
|
81
81
|
|
82
82
|
def failure_message_when_negated
|
83
|
-
"expected
|
83
|
+
"expected html to not contain image: #{@image.inspect}"
|
84
84
|
end
|
85
85
|
|
86
86
|
private
|
@@ -1,11 +1,17 @@
|
|
1
1
|
module Utensils
|
2
2
|
module UploadMacros
|
3
|
+
include ActionDispatch::TestProcess
|
4
|
+
|
5
|
+
def fixture_file_upload(filename)
|
6
|
+
super fixture_file_path(filename)
|
7
|
+
end
|
8
|
+
|
3
9
|
def fixture_file(filename)
|
4
|
-
File.new
|
10
|
+
File.new fixture_file_path(filename)
|
5
11
|
end
|
6
12
|
|
7
13
|
def fixture_file_path(filename)
|
8
|
-
Rails.root.join('spec','fixtures',filename)
|
14
|
+
Rails.root.join('spec', 'fixtures', filename)
|
9
15
|
end
|
10
16
|
end
|
11
17
|
end
|
data/lib/utensils/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: utensils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jens Balvig
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Rspec stuff we use over and over again
|
14
14
|
email:
|