rspec-file_fixtures 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -0
- data/Gemfile.lock +5 -1
- data/lib/rspec_file_fixtures/fixture.rb +4 -0
- data/lib/rspec_file_fixtures/version.rb +1 -1
- data/rspec-documentation/pages/010-Usage/060-Upload.md +11 -0
- data/rspec-documentation/spec_helper.rb +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '093408a94e9e51ba94c4f4635a34074e49e4d1b7b10190a13507e57a3bf60141'
|
4
|
+
data.tar.gz: d53f862a7af51f91c39d60e540b40165e834f97404a6884a8c969d6b362c33e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c888bf111292b125e6e8adeac538a0da5e94f861de1033e1154376210135cea3bf1622ef192bbecfa2d6a9de91c9b4e458edb6f998e91c6e9c8cc936431685e4
|
7
|
+
data.tar.gz: b3002dc69032e39af2e889ff7bfc8ea857dc66e355375150b98ca7ec35ef48c093df2a5d7af9c1d31cf118b5b20b597a24c9b38bfe9903c8e3bcfa11a050fd9b
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rspec-file_fixtures (0.1.
|
4
|
+
rspec-file_fixtures (0.1.9)
|
5
5
|
rspec (~> 3.12)
|
6
6
|
|
7
7
|
GEM
|
@@ -29,6 +29,9 @@ GEM
|
|
29
29
|
parser (3.2.2.1)
|
30
30
|
ast (~> 2.4.1)
|
31
31
|
racc (1.6.2)
|
32
|
+
rack (3.0.8)
|
33
|
+
rack-test (2.1.0)
|
34
|
+
rack (>= 1.3)
|
32
35
|
rainbow (3.1.1)
|
33
36
|
rake (13.0.6)
|
34
37
|
regexp_parser (2.8.0)
|
@@ -95,6 +98,7 @@ PLATFORMS
|
|
95
98
|
DEPENDENCIES
|
96
99
|
devpack (~> 0.4.1)
|
97
100
|
nokogiri (~> 1.15)
|
101
|
+
rack-test (~> 2.1)
|
98
102
|
rake (~> 13.0)
|
99
103
|
rspec (~> 3.12)
|
100
104
|
rspec-documentation (~> 0.0.5)
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# Upload
|
2
|
+
|
3
|
+
Create a `Rack::Test::UploadedFile` instance by calling `#upload(content_type: 'image/png')` (e.g.).
|
4
|
+
|
5
|
+
The returned object can be passed as a parameter in a _request_ spec to simulate uploading a file.
|
6
|
+
|
7
|
+
```rspec
|
8
|
+
subject { fixture('example.xml').upload(content_type: 'application/xml') }
|
9
|
+
|
10
|
+
it { is_expected.to be_a Rack::Test::UploadedFile }
|
11
|
+
```
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-file_fixtures
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bob Farrell
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -54,6 +54,7 @@ files:
|
|
54
54
|
- rspec-documentation/pages/010-Usage/030-XML.md
|
55
55
|
- rspec-documentation/pages/010-Usage/040-Copy_to.md
|
56
56
|
- rspec-documentation/pages/010-Usage/050-Pathname.md
|
57
|
+
- rspec-documentation/pages/010-Usage/060-Upload.md
|
57
58
|
- rspec-documentation/pages/500-License.md
|
58
59
|
- rspec-documentation/spec_helper.rb
|
59
60
|
- rspec-file_fixtures.gemspec
|