redis_web_manager 0.3.9 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -36,7 +36,7 @@ RSpec.describe RedisWebManager::Info do
36
36
  end
37
37
 
38
38
  it 'returns a memory usage value (memory_usage)' do
39
- expect(info.memory_usage('test')).to eql(52)
39
+ expect(info.memory_usage('test')).to be_between(52, 62)
40
40
  end
41
41
 
42
42
  it 'returns a test value (get)' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redis_web_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.9
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Boris BRESCIANI
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2021-08-12 00:00:00.000000000 Z
13
+ date: 2021-08-13 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: coveralls
@@ -358,11 +358,6 @@ files:
358
358
  - spec/redis_web_manager_data_spec.rb
359
359
  - spec/redis_web_manager_info_spec.rb
360
360
  - spec/redis_web_manager_spec.rb
361
- - spec/routing/actions_controller_spec.rb
362
- - spec/routing/clients_controller_spec.rb
363
- - spec/routing/configuration_controller_spec.rb
364
- - spec/routing/dashboard_controller_spec.rb
365
- - spec/routing/keys_controller_spec.rb
366
361
  - spec/spec_helper.rb
367
362
  homepage: https://github.com/OpenGems/redis_web_manager
368
363
  licenses:
@@ -562,11 +557,6 @@ test_files:
562
557
  - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/Rw/Rwoa1O92ek_CiZeWN2fEhw5QTyjdM8gKVJbV-aQS2wc.cache
563
558
  - spec/redis_web_manager_info_spec.rb
564
559
  - spec/redis_web_manager_action_spec.rb
565
- - spec/routing/dashboard_controller_spec.rb
566
- - spec/routing/keys_controller_spec.rb
567
- - spec/routing/actions_controller_spec.rb
568
- - spec/routing/clients_controller_spec.rb
569
- - spec/routing/configuration_controller_spec.rb
570
560
  - spec/redis_web_manager_connection_spec.rb
571
561
  - spec/controllers/redis_web_manager/dashboard_controller_spec.rb
572
562
  - spec/controllers/redis_web_manager/information_controller_spec.rb
@@ -1,31 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'rails_helper'
4
-
5
- RSpec.describe RedisWebManager::ActionsController, type: :routing do
6
- routes { RedisWebManager::Engine.routes }
7
-
8
- let(:default) do
9
- RedisWebManager.redises.keys[0]
10
- end
11
-
12
- describe 'routing' do
13
- it 'routes to #reset' do
14
- expect(delete: "/#{default}/reset").to(
15
- route_to('redis_web_manager/actions#reset', instance: default.to_s)
16
- )
17
- end
18
-
19
- it 'routes to #flushdb' do
20
- expect(delete: "/#{default}/flushdb").to(
21
- route_to('redis_web_manager/actions#flushdb', instance: default.to_s)
22
- )
23
- end
24
-
25
- it 'routes to #flushall' do
26
- expect(delete: "/#{default}/flushall").to(
27
- route_to('redis_web_manager/actions#flushall', instance: default.to_s)
28
- )
29
- end
30
- end
31
- end
@@ -1,19 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'rails_helper'
4
-
5
- RSpec.describe RedisWebManager::ClientsController, type: :routing do
6
- routes { RedisWebManager::Engine.routes }
7
-
8
- let(:default) do
9
- RedisWebManager.redises.keys[0]
10
- end
11
-
12
- describe 'routing' do
13
- it 'routes to #index' do
14
- expect(get: "/#{default}/clients").to(
15
- route_to('redis_web_manager/clients#index', instance: default.to_s)
16
- )
17
- end
18
- end
19
- end
@@ -1,19 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'rails_helper'
4
-
5
- RSpec.describe RedisWebManager::ConfigurationController, type: :routing do
6
- routes { RedisWebManager::Engine.routes }
7
-
8
- let(:default) do
9
- RedisWebManager.redises.keys[0]
10
- end
11
-
12
- describe 'routing' do
13
- it 'routes to #index' do
14
- expect(get: "/#{default}/configuration").to(
15
- route_to('redis_web_manager/configuration#index', instance: default.to_s)
16
- )
17
- end
18
- end
19
- end
@@ -1,19 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'rails_helper'
4
-
5
- RSpec.describe RedisWebManager::DashboardController, type: :routing do
6
- routes { RedisWebManager::Engine.routes }
7
-
8
- let(:default) do
9
- RedisWebManager.redises.keys[0]
10
- end
11
-
12
- describe 'routing' do
13
- it 'routes to #index' do
14
- expect(get: "/#{default}/dashboard").to(
15
- route_to('redis_web_manager/dashboard#index', instance: default.to_s)
16
- )
17
- end
18
- end
19
- end
@@ -1,43 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'rails_helper'
4
-
5
- RSpec.describe RedisWebManager::KeysController, type: :routing do
6
- routes { RedisWebManager::Engine.routes }
7
-
8
- let(:default) do
9
- RedisWebManager.redises.keys[0]
10
- end
11
-
12
- describe 'routing' do
13
- it 'routes to #index' do
14
- expect(get: "/#{default}/keys").to(
15
- route_to('redis_web_manager/keys#index', instance: default.to_s)
16
- )
17
- end
18
-
19
- it 'routes to #show' do
20
- expect(get: "/#{default}/key").to(
21
- route_to('redis_web_manager/keys#show', instance: default.to_s)
22
- )
23
- end
24
-
25
- it 'routes to #edit' do
26
- expect(get: "/#{default}/key/edit").to(
27
- route_to('redis_web_manager/keys#edit', instance: default.to_s)
28
- )
29
- end
30
-
31
- it 'routes to #update' do
32
- expect(put: "/#{default}/keys").to(
33
- route_to('redis_web_manager/keys#update', instance: default.to_s)
34
- )
35
- end
36
-
37
- it 'routes to #destroy' do
38
- expect(delete: "/#{default}/keys").to(
39
- route_to('redis_web_manager/keys#destroy', instance: default.to_s)
40
- )
41
- end
42
- end
43
- end