Sha256: 55c7c321648efbfe9925256f275434ea5906890f7b3f66d08313f0c0ea963859
Contents?: true
Size: 783 Bytes
Versions: 9
Compression:
Stored size: 783 Bytes
Contents
# frozen_string_literal: true require 'rails_helper' RSpec.describe RedisWebManager::ActionsController, type: :routing do routes { RedisWebManager::Engine.routes } let(:default) do RedisWebManager.redises.keys[0] end describe 'routing' do it 'routes to #reset' do expect(delete: "/#{default}/reset").to( route_to('redis_web_manager/actions#reset', instance: default.to_s) ) end it 'routes to #flushdb' do expect(delete: "/#{default}/flushdb").to( route_to('redis_web_manager/actions#flushdb', instance: default.to_s) ) end it 'routes to #flushall' do expect(delete: "/#{default}/flushall").to( route_to('redis_web_manager/actions#flushall', instance: default.to_s) ) end end end
Version data entries
9 entries across 9 versions & 1 rubygems