utensils 1.2.0 → 1.3.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
  SHA1:
3
- metadata.gz: b99cedd617ae4f7fe5e84edc80629687b3102bd2
4
- data.tar.gz: dcc6a636b57f622d663e04bfb3f8a9d59bbe3b19
3
+ metadata.gz: 1c733878535e6fbc196017ada0c7d944f6645698
4
+ data.tar.gz: a7b38404e9e02abfaedffce8e68d5d90435c8e6f
5
5
  SHA512:
6
- metadata.gz: 9c251ac8c618adc93778afed84f427028fbdbe23dc6101a0734002e18c4e7b8403348212badd61454c914434b54877e1d8dcade426550feacbbc69771019405a
7
- data.tar.gz: d8892e67869015207b3aa6de8ec6434351355f80529aae3003bfbbbe7d452971c779af3373a6498b528619e7263c4e0c3542694bf166f90aa43a632925e8b7b1
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 #{@page.body} to contain image: #{@image.inspect}"
79
+ "expected html to contain image: #{@image.inspect}"
80
80
  end
81
81
 
82
82
  def failure_message_when_negated
83
- "expected #{@page.body} to not contain image: #{@image.inspect}"
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(fixture_file_path(filename))
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
@@ -1,3 +1,3 @@
1
1
  module Utensils
2
- VERSION = '1.2.0'
2
+ VERSION = '1.3.0'
3
3
  end
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.2.0
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-07-29 00:00:00.000000000 Z
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: