defra_ruby_email 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/defra_ruby_email/version.rb +1 -1
- data/spec/dummy/log/test.log +3073 -6128
- data/spec/examples.txt +36 -36
- data/spec/requests/last_email_spec.rb +1 -1
- data/spec/requests/last_notify_message_spec.rb +1 -1
- metadata +4 -4
data/spec/examples.txt
CHANGED
@@ -1,38 +1,38 @@
|
|
1
1
|
example_id | status | run_time |
|
2
2
|
-------------------------------------------------- | ------ | --------------- |
|
3
|
-
./spec/defra_ruby_email_spec.rb[1:1:1] | passed | 0.
|
4
|
-
./spec/defra_ruby_email_spec.rb[1:2:1:1] | passed | 0.
|
5
|
-
./spec/defra_ruby_email_spec.rb[1:2:2:1] | passed | 0.
|
6
|
-
./spec/lib/last_email_cache_spec.rb[1:1:1:1] | passed | 0.
|
7
|
-
./spec/lib/last_email_cache_spec.rb[1:1:1:2] | passed | 0.
|
8
|
-
./spec/lib/last_email_cache_spec.rb[1:1:2:1:1] | passed | 0.
|
9
|
-
./spec/lib/last_email_cache_spec.rb[1:1:2:1:2] | passed | 0.
|
10
|
-
./spec/lib/last_email_cache_spec.rb[1:1:2:1:3] | passed | 0.
|
11
|
-
./spec/lib/last_email_cache_spec.rb[1:1:2:2:1] | passed | 0.
|
12
|
-
./spec/lib/last_email_cache_spec.rb[1:1:2:2:2] | passed | 0.
|
13
|
-
./spec/lib/last_email_cache_spec.rb[1:1:2:2:3] | passed | 0.
|
14
|
-
./spec/lib/last_email_cache_spec.rb[1:1:3:1:1] | passed | 0.
|
15
|
-
./spec/lib/last_email_cache_spec.rb[1:1:3:1:2] | passed | 0.
|
16
|
-
./spec/lib/last_email_cache_spec.rb[1:1:3:1:3] | passed | 0.
|
17
|
-
./spec/lib/last_email_cache_spec.rb[1:1:3:2:1] | passed | 0.
|
18
|
-
./spec/lib/last_email_cache_spec.rb[1:1:3:2:2] | passed | 0.
|
19
|
-
./spec/lib/last_email_cache_spec.rb[1:1:3:2:3] | passed | 0.
|
20
|
-
./spec/lib/last_email_cache_spec.rb[1:1:3:3:1] | passed | 0.
|
21
|
-
./spec/lib/last_email_cache_spec.rb[1:1:3:3:2] | passed | 0.
|
22
|
-
./spec/lib/last_email_cache_spec.rb[1:1:3:3:3] | passed | 0.
|
23
|
-
./spec/lib/last_email_cache_spec.rb[1:1:3:4:1] | passed | 0.
|
24
|
-
./spec/lib/last_email_cache_spec.rb[1:1:3:4:2] | passed | 0.
|
25
|
-
./spec/lib/last_email_cache_spec.rb[1:1:3:4:3] | passed | 0.
|
26
|
-
./spec/lib/last_email_cache_spec.rb[1:1:4:1] | passed | 0.
|
27
|
-
./spec/lib/last_email_cache_spec.rb[1:1:4:2] | passed | 0.
|
28
|
-
./spec/lib/last_email_cache_spec.rb[1:1:4:3] | passed | 0.
|
29
|
-
./spec/lib/last_email_cache_spec.rb[1:1:4:4] | passed | 0.
|
30
|
-
./spec/lib/last_notify_message_spec.rb[1:1:1] | passed | 0.
|
31
|
-
./spec/lib/last_notify_message_spec.rb[1:2:1:1] | passed | 0.
|
32
|
-
./spec/lib/last_notify_message_spec.rb[1:2:1:2] | passed | 0.
|
33
|
-
./spec/lib/last_notify_message_spec.rb[1:2:2:1] | passed | 0.
|
34
|
-
./spec/lib/last_notify_message_spec.rb[1:2:2:2] | passed | 0.
|
35
|
-
./spec/requests/last_email_spec.rb[1:1:1] | passed | 0.
|
36
|
-
./spec/requests/last_email_spec.rb[1:2:1] | passed | 0.
|
37
|
-
./spec/requests/last_notify_message_spec.rb[1:1:1] | passed | 0.
|
38
|
-
./spec/requests/last_notify_message_spec.rb[1:2:1] | passed | 0.
|
3
|
+
./spec/defra_ruby_email_spec.rb[1:1:1] | passed | 0.00141 seconds |
|
4
|
+
./spec/defra_ruby_email_spec.rb[1:2:1:1] | passed | 0.00065 seconds |
|
5
|
+
./spec/defra_ruby_email_spec.rb[1:2:2:1] | passed | 0.00012 seconds |
|
6
|
+
./spec/lib/last_email_cache_spec.rb[1:1:1:1] | passed | 0.0002 seconds |
|
7
|
+
./spec/lib/last_email_cache_spec.rb[1:1:1:2] | passed | 0.0002 seconds |
|
8
|
+
./spec/lib/last_email_cache_spec.rb[1:1:2:1:1] | passed | 0.00348 seconds |
|
9
|
+
./spec/lib/last_email_cache_spec.rb[1:1:2:1:2] | passed | 0.00401 seconds |
|
10
|
+
./spec/lib/last_email_cache_spec.rb[1:1:2:1:3] | passed | 0.00321 seconds |
|
11
|
+
./spec/lib/last_email_cache_spec.rb[1:1:2:2:1] | passed | 0.00316 seconds |
|
12
|
+
./spec/lib/last_email_cache_spec.rb[1:1:2:2:2] | passed | 0.00406 seconds |
|
13
|
+
./spec/lib/last_email_cache_spec.rb[1:1:2:2:3] | passed | 0.00322 seconds |
|
14
|
+
./spec/lib/last_email_cache_spec.rb[1:1:3:1:1] | passed | 0.00744 seconds |
|
15
|
+
./spec/lib/last_email_cache_spec.rb[1:1:3:1:2] | passed | 0.00738 seconds |
|
16
|
+
./spec/lib/last_email_cache_spec.rb[1:1:3:1:3] | passed | 0.00725 seconds |
|
17
|
+
./spec/lib/last_email_cache_spec.rb[1:1:3:2:1] | passed | 0.01275 seconds |
|
18
|
+
./spec/lib/last_email_cache_spec.rb[1:1:3:2:2] | passed | 0.01283 seconds |
|
19
|
+
./spec/lib/last_email_cache_spec.rb[1:1:3:2:3] | passed | 0.01324 seconds |
|
20
|
+
./spec/lib/last_email_cache_spec.rb[1:1:3:3:1] | passed | 0.01334 seconds |
|
21
|
+
./spec/lib/last_email_cache_spec.rb[1:1:3:3:2] | passed | 0.01667 seconds |
|
22
|
+
./spec/lib/last_email_cache_spec.rb[1:1:3:3:3] | passed | 0.01566 seconds |
|
23
|
+
./spec/lib/last_email_cache_spec.rb[1:1:3:4:1] | passed | 0.0092 seconds |
|
24
|
+
./spec/lib/last_email_cache_spec.rb[1:1:3:4:2] | passed | 0.02459 seconds |
|
25
|
+
./spec/lib/last_email_cache_spec.rb[1:1:3:4:3] | passed | 0.00897 seconds |
|
26
|
+
./spec/lib/last_email_cache_spec.rb[1:1:4:1] | passed | 0.00686 seconds |
|
27
|
+
./spec/lib/last_email_cache_spec.rb[1:1:4:2] | passed | 0.00606 seconds |
|
28
|
+
./spec/lib/last_email_cache_spec.rb[1:1:4:3] | passed | 0.00752 seconds |
|
29
|
+
./spec/lib/last_email_cache_spec.rb[1:1:4:4] | passed | 0.00553 seconds |
|
30
|
+
./spec/lib/last_notify_message_spec.rb[1:1:1] | passed | 0.00917 seconds |
|
31
|
+
./spec/lib/last_notify_message_spec.rb[1:2:1:1] | passed | 0.00014 seconds |
|
32
|
+
./spec/lib/last_notify_message_spec.rb[1:2:1:2] | passed | 0.00014 seconds |
|
33
|
+
./spec/lib/last_notify_message_spec.rb[1:2:2:1] | passed | 0.0005 seconds |
|
34
|
+
./spec/lib/last_notify_message_spec.rb[1:2:2:2] | passed | 0.00064 seconds |
|
35
|
+
./spec/requests/last_email_spec.rb[1:1:1] | passed | 0.2142 seconds |
|
36
|
+
./spec/requests/last_email_spec.rb[1:2:1] | passed | 0.00534 seconds |
|
37
|
+
./spec/requests/last_notify_message_spec.rb[1:1:1] | passed | 0.007 seconds |
|
38
|
+
./spec/requests/last_notify_message_spec.rb[1:2:1] | passed | 0.00562 seconds |
|
@@ -17,7 +17,7 @@ module DefraRubyEmail
|
|
17
17
|
it "returns a JSON response with a 200 code containing details of the last email sent" do
|
18
18
|
get path
|
19
19
|
|
20
|
-
expect(response.
|
20
|
+
expect(response.media_type).to eq("application/json")
|
21
21
|
expect(response.code).to eq("200")
|
22
22
|
expect(response.body).to eq(LastEmailCache.instance.last_email_json)
|
23
23
|
end
|
@@ -64,7 +64,7 @@ module DefraRubyEmail
|
|
64
64
|
it "returns a JSON response with a 200 code containing details of the last Notify message sent" do
|
65
65
|
get path
|
66
66
|
|
67
|
-
expect(response.
|
67
|
+
expect(response.media_type).to eq("application/json")
|
68
68
|
expect(response.code).to eq("200")
|
69
69
|
|
70
70
|
expect(response.body).to eq(expected_data)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: defra_ruby_email
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Defra
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-08-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 6.0
|
19
|
+
version: '6.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 6.0
|
26
|
+
version: '6.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: sprockets
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|