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.
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.00413 seconds |
4
- ./spec/defra_ruby_email_spec.rb[1:2:1:1] | passed | 0.00548 seconds |
5
- ./spec/defra_ruby_email_spec.rb[1:2:2:1] | passed | 0.00015 seconds |
6
- ./spec/lib/last_email_cache_spec.rb[1:1:1:1] | passed | 0.00025 seconds |
7
- ./spec/lib/last_email_cache_spec.rb[1:1:1:2] | passed | 0.00016 seconds |
8
- ./spec/lib/last_email_cache_spec.rb[1:1:2:1:1] | passed | 0.006 seconds |
9
- ./spec/lib/last_email_cache_spec.rb[1:1:2:1:2] | passed | 0.00465 seconds |
10
- ./spec/lib/last_email_cache_spec.rb[1:1:2:1:3] | passed | 0.16939 seconds |
11
- ./spec/lib/last_email_cache_spec.rb[1:1:2:2:1] | passed | 0.00418 seconds |
12
- ./spec/lib/last_email_cache_spec.rb[1:1:2:2:2] | passed | 0.00217 seconds |
13
- ./spec/lib/last_email_cache_spec.rb[1:1:2:2:3] | passed | 0.00255 seconds |
14
- ./spec/lib/last_email_cache_spec.rb[1:1:3:1:1] | passed | 0.00681 seconds |
15
- ./spec/lib/last_email_cache_spec.rb[1:1:3:1:2] | passed | 0.00816 seconds |
16
- ./spec/lib/last_email_cache_spec.rb[1:1:3:1:3] | passed | 0.00772 seconds |
17
- ./spec/lib/last_email_cache_spec.rb[1:1:3:2:1] | passed | 0.01331 seconds |
18
- ./spec/lib/last_email_cache_spec.rb[1:1:3:2:2] | passed | 0.01288 seconds |
19
- ./spec/lib/last_email_cache_spec.rb[1:1:3:2:3] | passed | 0.01322 seconds |
20
- ./spec/lib/last_email_cache_spec.rb[1:1:3:3:1] | passed | 0.01055 seconds |
21
- ./spec/lib/last_email_cache_spec.rb[1:1:3:3:2] | passed | 0.01425 seconds |
22
- ./spec/lib/last_email_cache_spec.rb[1:1:3:3:3] | passed | 0.01011 seconds |
23
- ./spec/lib/last_email_cache_spec.rb[1:1:3:4:1] | passed | 0.00944 seconds |
24
- ./spec/lib/last_email_cache_spec.rb[1:1:3:4:2] | passed | 0.0113 seconds |
25
- ./spec/lib/last_email_cache_spec.rb[1:1:3:4:3] | passed | 0.01069 seconds |
26
- ./spec/lib/last_email_cache_spec.rb[1:1:4:1] | passed | 0.00774 seconds |
27
- ./spec/lib/last_email_cache_spec.rb[1:1:4:2] | passed | 0.00763 seconds |
28
- ./spec/lib/last_email_cache_spec.rb[1:1:4:3] | passed | 0.00662 seconds |
29
- ./spec/lib/last_email_cache_spec.rb[1:1:4:4] | passed | 0.0138 seconds |
30
- ./spec/lib/last_notify_message_spec.rb[1:1:1] | passed | 0.01227 seconds |
31
- ./spec/lib/last_notify_message_spec.rb[1:2:1:1] | passed | 0.00018 seconds |
32
- ./spec/lib/last_notify_message_spec.rb[1:2:1:2] | passed | 0.00024 seconds |
33
- ./spec/lib/last_notify_message_spec.rb[1:2:2:1] | passed | 0.00066 seconds |
34
- ./spec/lib/last_notify_message_spec.rb[1:2:2:2] | passed | 0.0005 seconds |
35
- ./spec/requests/last_email_spec.rb[1:1:1] | passed | 0.02328 seconds |
36
- ./spec/requests/last_email_spec.rb[1:2:1] | passed | 0.02231 seconds |
37
- ./spec/requests/last_notify_message_spec.rb[1:1:1] | passed | 0.05642 seconds |
38
- ./spec/requests/last_notify_message_spec.rb[1:2:1] | passed | 0.01434 seconds |
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.content_type).to eq("application/json")
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.content_type).to eq("application/json")
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.1.0
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: 2020-10-30 00:00:00.000000000 Z
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.3.1
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.3.1
26
+ version: '6.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: sprockets
29
29
  requirement: !ruby/object:Gem::Requirement