defra_ruby_mocks 1.0.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 +7 -0
- data/LICENSE +8 -0
- data/README.md +149 -0
- data/Rakefile +38 -0
- data/app/controllers/defra_ruby_mocks/application_controller.rb +17 -0
- data/app/controllers/defra_ruby_mocks/company_controller.rb +23 -0
- data/app/services/defra_ruby_mocks/base_service.rb +9 -0
- data/app/services/defra_ruby_mocks/companies_house_service.rb +54 -0
- data/app/views/defra_ruby_mocks/company/not_found.json.erb +8 -0
- data/app/views/defra_ruby_mocks/company/show.json.erb +3 -0
- data/config/routes.rb +8 -0
- data/lib/defra_ruby_mocks.rb +26 -0
- data/lib/defra_ruby_mocks/configuration.rb +39 -0
- data/lib/defra_ruby_mocks/engine.rb +13 -0
- data/lib/defra_ruby_mocks/version.rb +5 -0
- data/lib/tasks/changelog.rake +8 -0
- data/lib/tasks/defra_ruby_mocks_tasks.rake +8 -0
- data/spec/defra_ruby_mocks_spec.rb +44 -0
- data/spec/dummy/README.rdoc +28 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/bin/setup +29 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +27 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +38 -0
- data/spec/dummy/config/environments/production.rb +76 -0
- data/spec/dummy/config/environments/test.rb +42 -0
- data/spec/dummy/config/initializers/assets.rb +11 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +4 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/to_time_preserves_timezone.rb +10 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +9 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/routes.rb +4 -0
- data/spec/dummy/config/secrets.yml +22 -0
- data/spec/dummy/log/development.log +0 -0
- data/spec/dummy/log/test.log +147 -0
- data/spec/dummy/public/404.html +67 -0
- data/spec/dummy/public/422.html +67 -0
- data/spec/dummy/public/500.html +66 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/examples.txt +30 -0
- data/spec/lib/configuration_spec.rb +75 -0
- data/spec/rails_helper.rb +46 -0
- data/spec/requests/company_spec.rb +80 -0
- data/spec/services/companies_house_service_spec.rb +47 -0
- data/spec/spec_helper.rb +82 -0
- data/spec/support/helpers/configuration.rb +16 -0
- data/spec/support/pry.rb +7 -0
- data/spec/support/simplecov.rb +17 -0
- metadata +237 -0
@@ -0,0 +1,10 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Preserve the timezone of the receiver when calling to `to_time`.
|
4
|
+
# Ruby 2.4 will change the behavior of `to_time` to preserve the timezone
|
5
|
+
# when converting to an instance of `Time` instead of the previous behavior
|
6
|
+
# of converting to the local system timezone.
|
7
|
+
#
|
8
|
+
# Rails 5.0 introduced this config option so that apps made with earlier
|
9
|
+
# versions of Rails are not affected when upgrading.
|
10
|
+
ActiveSupport.to_time_preserves_timezone = true
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# This file contains settings for ActionController::ParamsWrapper which
|
4
|
+
# is enabled by default.
|
5
|
+
|
6
|
+
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
|
7
|
+
ActiveSupport.on_load(:action_controller) do
|
8
|
+
wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
|
9
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# Files in the config/locales directory are used for internationalization
|
2
|
+
# and are automatically loaded by Rails. If you want to use locales other
|
3
|
+
# than English, add the necessary files in this directory.
|
4
|
+
#
|
5
|
+
# To use the locales, use `I18n.t`:
|
6
|
+
#
|
7
|
+
# I18n.t 'hello'
|
8
|
+
#
|
9
|
+
# In views, this is aliased to just `t`:
|
10
|
+
#
|
11
|
+
# <%= t('hello') %>
|
12
|
+
#
|
13
|
+
# To use a different locale, set it with `I18n.locale`:
|
14
|
+
#
|
15
|
+
# I18n.locale = :es
|
16
|
+
#
|
17
|
+
# This would use the information in config/locales/es.yml.
|
18
|
+
#
|
19
|
+
# To learn more, please read the Rails Internationalization guide
|
20
|
+
# available at http://guides.rubyonrails.org/i18n.html.
|
21
|
+
|
22
|
+
en:
|
23
|
+
hello: "Hello world"
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Your secret key is used for verifying the integrity of signed cookies.
|
4
|
+
# If you change this key, all old signed cookies will become invalid!
|
5
|
+
|
6
|
+
# Make sure the secret is at least 30 characters and all random,
|
7
|
+
# no regular words or you'll be exposed to dictionary attacks.
|
8
|
+
# You can use `rake secret` to generate a secure secret key.
|
9
|
+
|
10
|
+
# Make sure the secrets in this file are kept private
|
11
|
+
# if you're sharing your code publicly.
|
12
|
+
|
13
|
+
development:
|
14
|
+
secret_key_base: 3b8b7a319bb65e77b90c62886983df6538799ea5d3f9c7b427b63246fc8f1b1742ba798a2d788176fce477e9d8913ca9c10d7c6d93d086c499bf607cc9529e3f
|
15
|
+
|
16
|
+
test:
|
17
|
+
secret_key_base: c105f2b5ea7c7a36ca13f8eebed792ba491af2744a64d0e2080a9c050d24166d62a5f63488e33e5916689450b29bb5ca6f4f9dfdafa49acd2ffb6ef6b2f8cd7a
|
18
|
+
|
19
|
+
# Do not keep production secrets in the repository,
|
20
|
+
# instead read values from the environment.
|
21
|
+
production:
|
22
|
+
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
|
File without changes
|
@@ -0,0 +1,147 @@
|
|
1
|
+
Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2019-12-27 17:10:46 +0000
|
2
|
+
Started GET "/defra_ruby_mocks/company/foo" for 127.0.0.1 at 2019-12-27 17:10:46 +0000
|
3
|
+
Processing by DefraRubyMocks::CompanyController#show as HTML
|
4
|
+
Parameters: {"id"=>"foo"}
|
5
|
+
Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (2.9ms)
|
6
|
+
Completed 404 Not Found in 36ms (Views: 36.0ms)
|
7
|
+
Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2019-12-27 17:10:46 +0000
|
8
|
+
Processing by DefraRubyMocks::CompanyController#show as HTML
|
9
|
+
Parameters: {"id"=>"SC247974"}
|
10
|
+
Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (0.5ms)
|
11
|
+
Completed 200 OK in 5ms (Views: 5.1ms)
|
12
|
+
Started GET "/defra_ruby_mocks/company/99999999" for 127.0.0.1 at 2019-12-27 17:10:46 +0000
|
13
|
+
Processing by DefraRubyMocks::CompanyController#show as HTML
|
14
|
+
Parameters: {"id"=>"99999999"}
|
15
|
+
Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (0.1ms)
|
16
|
+
Completed 404 Not Found in 1ms (Views: 0.6ms)
|
17
|
+
Started GET "/defra_ruby_mocks/company/05868270" for 127.0.0.1 at 2019-12-27 17:10:46 +0000
|
18
|
+
Processing by DefraRubyMocks::CompanyController#show as HTML
|
19
|
+
Parameters: {"id"=>"05868270"}
|
20
|
+
Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (0.1ms)
|
21
|
+
Completed 200 OK in 2ms (Views: 1.1ms)
|
22
|
+
Started GET "/defra_ruby_mocks/company/99999999" for 127.0.0.1 at 2019-12-27 17:13:25 +0000
|
23
|
+
Processing by DefraRubyMocks::CompanyController#show as HTML
|
24
|
+
Parameters: {"id"=>"99999999"}
|
25
|
+
Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (2.8ms)
|
26
|
+
Completed 404 Not Found in 31ms (Views: 30.7ms)
|
27
|
+
Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2019-12-27 17:13:25 +0000
|
28
|
+
Processing by DefraRubyMocks::CompanyController#show as HTML
|
29
|
+
Parameters: {"id"=>"SC247974"}
|
30
|
+
Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (0.5ms)
|
31
|
+
Completed 200 OK in 5ms (Views: 4.6ms)
|
32
|
+
Started GET "/defra_ruby_mocks/company/foo" for 127.0.0.1 at 2019-12-27 17:13:25 +0000
|
33
|
+
Processing by DefraRubyMocks::CompanyController#show as HTML
|
34
|
+
Parameters: {"id"=>"foo"}
|
35
|
+
Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (0.1ms)
|
36
|
+
Completed 404 Not Found in 1ms (Views: 0.6ms)
|
37
|
+
Started GET "/defra_ruby_mocks/company/05868270" for 127.0.0.1 at 2019-12-27 17:13:25 +0000
|
38
|
+
Processing by DefraRubyMocks::CompanyController#show as HTML
|
39
|
+
Parameters: {"id"=>"05868270"}
|
40
|
+
Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (0.1ms)
|
41
|
+
Completed 200 OK in 1ms (Views: 0.5ms)
|
42
|
+
Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2019-12-27 17:13:25 +0000
|
43
|
+
Started GET "/defra_ruby_mocks/company/foo" for 127.0.0.1 at 2019-12-27 17:16:06 +0000
|
44
|
+
Processing by DefraRubyMocks::CompanyController#show as HTML
|
45
|
+
Parameters: {"id"=>"foo"}
|
46
|
+
Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (4.6ms)
|
47
|
+
Completed 404 Not Found in 37ms (Views: 35.9ms)
|
48
|
+
Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2019-12-27 17:16:06 +0000
|
49
|
+
Processing by DefraRubyMocks::CompanyController#show as HTML
|
50
|
+
Parameters: {"id"=>"SC247974"}
|
51
|
+
Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (0.7ms)
|
52
|
+
Completed 200 OK in 7ms (Views: 6.6ms)
|
53
|
+
Started GET "/defra_ruby_mocks/company/05868270" for 127.0.0.1 at 2019-12-27 17:16:06 +0000
|
54
|
+
Processing by DefraRubyMocks::CompanyController#show as HTML
|
55
|
+
Parameters: {"id"=>"05868270"}
|
56
|
+
Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (0.1ms)
|
57
|
+
Completed 200 OK in 1ms (Views: 0.6ms)
|
58
|
+
Started GET "/defra_ruby_mocks/company/99999999" for 127.0.0.1 at 2019-12-27 17:16:06 +0000
|
59
|
+
Processing by DefraRubyMocks::CompanyController#show as HTML
|
60
|
+
Parameters: {"id"=>"99999999"}
|
61
|
+
Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (0.1ms)
|
62
|
+
Completed 404 Not Found in 1ms (Views: 0.4ms)
|
63
|
+
Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2019-12-27 17:16:06 +0000
|
64
|
+
Started GET "/defra_ruby_mocks/company/99999999" for 127.0.0.1 at 2019-12-27 17:16:42 +0000
|
65
|
+
Processing by DefraRubyMocks::CompanyController#show as HTML
|
66
|
+
Parameters: {"id"=>"99999999"}
|
67
|
+
Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (3.0ms)
|
68
|
+
Completed 404 Not Found in 28ms (Views: 27.2ms)
|
69
|
+
Started GET "/defra_ruby_mocks/company/05868270" for 127.0.0.1 at 2019-12-27 17:16:42 +0000
|
70
|
+
Processing by DefraRubyMocks::CompanyController#show as HTML
|
71
|
+
Parameters: {"id"=>"05868270"}
|
72
|
+
Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (0.5ms)
|
73
|
+
Completed 200 OK in 6ms (Views: 5.4ms)
|
74
|
+
Started GET "/defra_ruby_mocks/company/foo" for 127.0.0.1 at 2019-12-27 17:16:42 +0000
|
75
|
+
Processing by DefraRubyMocks::CompanyController#show as HTML
|
76
|
+
Parameters: {"id"=>"foo"}
|
77
|
+
Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (0.1ms)
|
78
|
+
Completed 404 Not Found in 1ms (Views: 0.6ms)
|
79
|
+
Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2019-12-27 17:16:42 +0000
|
80
|
+
Processing by DefraRubyMocks::CompanyController#show as HTML
|
81
|
+
Parameters: {"id"=>"SC247974"}
|
82
|
+
Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (0.1ms)
|
83
|
+
Completed 200 OK in 1ms (Views: 0.5ms)
|
84
|
+
Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2019-12-27 17:16:42 +0000
|
85
|
+
Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2019-12-27 17:17:50 +0000
|
86
|
+
Started GET "/defra_ruby_mocks/company/99999999" for 127.0.0.1 at 2019-12-27 17:17:50 +0000
|
87
|
+
Processing by DefraRubyMocks::CompanyController#show as HTML
|
88
|
+
Parameters: {"id"=>"99999999"}
|
89
|
+
Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (3.8ms)
|
90
|
+
Completed 404 Not Found in 36ms (Views: 35.8ms)
|
91
|
+
Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2019-12-27 17:17:50 +0000
|
92
|
+
Processing by DefraRubyMocks::CompanyController#show as HTML
|
93
|
+
Parameters: {"id"=>"SC247974"}
|
94
|
+
Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (0.8ms)
|
95
|
+
Completed 200 OK in 10ms (Views: 9.0ms)
|
96
|
+
Started GET "/defra_ruby_mocks/company/foo" for 127.0.0.1 at 2019-12-27 17:17:50 +0000
|
97
|
+
Processing by DefraRubyMocks::CompanyController#show as HTML
|
98
|
+
Parameters: {"id"=>"foo"}
|
99
|
+
Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (0.1ms)
|
100
|
+
Completed 404 Not Found in 1ms (Views: 0.8ms)
|
101
|
+
Started GET "/defra_ruby_mocks/company/05868270" for 127.0.0.1 at 2019-12-27 17:17:50 +0000
|
102
|
+
Processing by DefraRubyMocks::CompanyController#show as HTML
|
103
|
+
Parameters: {"id"=>"05868270"}
|
104
|
+
Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (0.1ms)
|
105
|
+
Completed 200 OK in 1ms (Views: 0.6ms)
|
106
|
+
Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2019-12-27 17:31:03 +0000
|
107
|
+
Started GET "/defra_ruby_mocks/company/foo" for 127.0.0.1 at 2019-12-27 17:31:03 +0000
|
108
|
+
Processing by DefraRubyMocks::CompanyController#show as HTML
|
109
|
+
Parameters: {"id"=>"foo"}
|
110
|
+
Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (3.0ms)
|
111
|
+
Completed 404 Not Found in 34ms (Views: 33.5ms)
|
112
|
+
Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2019-12-27 17:31:03 +0000
|
113
|
+
Processing by DefraRubyMocks::CompanyController#show as HTML
|
114
|
+
Parameters: {"id"=>"SC247974"}
|
115
|
+
Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (0.4ms)
|
116
|
+
Completed 200 OK in 5ms (Views: 4.8ms)
|
117
|
+
Started GET "/defra_ruby_mocks/company/99999999" for 127.0.0.1 at 2019-12-27 17:31:03 +0000
|
118
|
+
Processing by DefraRubyMocks::CompanyController#show as HTML
|
119
|
+
Parameters: {"id"=>"99999999"}
|
120
|
+
Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (0.1ms)
|
121
|
+
Completed 404 Not Found in 1ms (Views: 0.5ms)
|
122
|
+
Started GET "/defra_ruby_mocks/company/05868270" for 127.0.0.1 at 2019-12-27 17:31:03 +0000
|
123
|
+
Processing by DefraRubyMocks::CompanyController#show as HTML
|
124
|
+
Parameters: {"id"=>"05868270"}
|
125
|
+
Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (0.1ms)
|
126
|
+
Completed 200 OK in 1ms (Views: 0.5ms)
|
127
|
+
Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2019-12-27 17:37:44 +0000
|
128
|
+
Started GET "/defra_ruby_mocks/company/99999999" for 127.0.0.1 at 2019-12-27 17:37:44 +0000
|
129
|
+
Processing by DefraRubyMocks::CompanyController#show as HTML
|
130
|
+
Parameters: {"id"=>"99999999"}
|
131
|
+
Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (3.0ms)
|
132
|
+
Completed 404 Not Found in 30ms (Views: 30.0ms)
|
133
|
+
Started GET "/defra_ruby_mocks/company/05868270" for 127.0.0.1 at 2019-12-27 17:37:44 +0000
|
134
|
+
Processing by DefraRubyMocks::CompanyController#show as HTML
|
135
|
+
Parameters: {"id"=>"05868270"}
|
136
|
+
Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (0.4ms)
|
137
|
+
Completed 200 OK in 5ms (Views: 4.5ms)
|
138
|
+
Started GET "/defra_ruby_mocks/company/foo" for 127.0.0.1 at 2019-12-27 17:37:44 +0000
|
139
|
+
Processing by DefraRubyMocks::CompanyController#show as HTML
|
140
|
+
Parameters: {"id"=>"foo"}
|
141
|
+
Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (0.1ms)
|
142
|
+
Completed 404 Not Found in 1ms (Views: 0.5ms)
|
143
|
+
Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2019-12-27 17:37:44 +0000
|
144
|
+
Processing by DefraRubyMocks::CompanyController#show as HTML
|
145
|
+
Parameters: {"id"=>"SC247974"}
|
146
|
+
Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (0.1ms)
|
147
|
+
Completed 200 OK in 1ms (Views: 0.4ms)
|
@@ -0,0 +1,67 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body>
|
58
|
+
<!-- This file lives in public/404.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
62
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
63
|
+
</div>
|
64
|
+
<p>If you are the application owner check the logs for more information.</p>
|
65
|
+
</div>
|
66
|
+
</body>
|
67
|
+
</html>
|
@@ -0,0 +1,67 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body>
|
58
|
+
<!-- This file lives in public/422.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>The change you wanted was rejected.</h1>
|
62
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
63
|
+
</div>
|
64
|
+
<p>If you are the application owner check the logs for more information.</p>
|
65
|
+
</div>
|
66
|
+
</body>
|
67
|
+
</html>
|
@@ -0,0 +1,66 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body>
|
58
|
+
<!-- This file lives in public/500.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>We're sorry, but something went wrong.</h1>
|
62
|
+
</div>
|
63
|
+
<p>If you are the application owner check the logs for more information.</p>
|
64
|
+
</div>
|
65
|
+
</body>
|
66
|
+
</html>
|
File without changes
|
data/spec/examples.txt
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
example_id | status | run_time |
|
2
|
+
---------------------------------------------------------- | ------ | --------------- |
|
3
|
+
./spec/defra_ruby_mocks_spec.rb[1:1:1] | passed | 0.00386 seconds |
|
4
|
+
./spec/defra_ruby_mocks_spec.rb[1:2:1:1] | passed | 0.0002 seconds |
|
5
|
+
./spec/defra_ruby_mocks_spec.rb[1:2:2:1] | passed | 0.00229 seconds |
|
6
|
+
./spec/lib/configuration_spec.rb[1:1:1:1] | passed | 0.00235 seconds |
|
7
|
+
./spec/lib/configuration_spec.rb[1:1:2:1] | passed | 0.00021 seconds |
|
8
|
+
./spec/lib/configuration_spec.rb[1:1:3:1] | passed | 0.00021 seconds |
|
9
|
+
./spec/lib/configuration_spec.rb[1:1:4:1] | passed | 0.00018 seconds |
|
10
|
+
./spec/lib/configuration_spec.rb[1:2:1:1] | passed | 0.00017 seconds |
|
11
|
+
./spec/lib/configuration_spec.rb[1:2:2:1] | passed | 0.00016 seconds |
|
12
|
+
./spec/lib/configuration_spec.rb[1:2:3:1] | passed | 0.00015 seconds |
|
13
|
+
./spec/lib/configuration_spec.rb[1:2:4:1] | passed | 0.00012 seconds |
|
14
|
+
./spec/requests/company_spec.rb[1:1:1:1] | passed | 0.06356 seconds |
|
15
|
+
./spec/requests/company_spec.rb[1:1:2:1] | passed | 0.00938 seconds |
|
16
|
+
./spec/requests/company_spec.rb[1:1:3:1:1] | passed | 0.00503 seconds |
|
17
|
+
./spec/requests/company_spec.rb[1:1:3:2:1] | passed | 0.00478 seconds |
|
18
|
+
./spec/requests/company_spec.rb[1:2:1] | passed | 0.01834 seconds |
|
19
|
+
./spec/services/companies_house_service_spec.rb[1:1:1:1] | passed | 0.0002 seconds |
|
20
|
+
./spec/services/companies_house_service_spec.rb[1:1:2:1:1] | passed | 0.0001 seconds |
|
21
|
+
./spec/services/companies_house_service_spec.rb[1:1:2:2:1] | passed | 0.00009 seconds |
|
22
|
+
./spec/services/companies_house_service_spec.rb[1:1:2:3:1] | passed | 0.00012 seconds |
|
23
|
+
./spec/services/companies_house_service_spec.rb[1:1:2:4:1] | passed | 0.00009 seconds |
|
24
|
+
./spec/services/companies_house_service_spec.rb[1:1:2:5:1] | passed | 0.0001 seconds |
|
25
|
+
./spec/services/companies_house_service_spec.rb[1:1:2:6:1] | passed | 0.0001 seconds |
|
26
|
+
./spec/services/companies_house_service_spec.rb[1:1:2:7:1] | passed | 0.00013 seconds |
|
27
|
+
./spec/services/companies_house_service_spec.rb[1:1:2:8:1] | passed | 0.00012 seconds |
|
28
|
+
./spec/services/companies_house_service_spec.rb[1:1:2:9:1] | passed | 0.00012 seconds |
|
29
|
+
./spec/services/companies_house_service_spec.rb[1:1:3:1:1] | passed | 0.00012 seconds |
|
30
|
+
./spec/services/companies_house_service_spec.rb[1:1:3:2:1] | passed | 0.00015 seconds |
|