Sha256: 663f1513a7df2793378abe97ba0751066b121a9196298f27f38717bb9f469448
Contents?: true
Size: 837 Bytes
Versions: 3
Compression:
Stored size: 837 Bytes
Contents
# frozen_string_literal: true require 'rails_helper' RSpec.describe RedisWebManager::KeysController, type: :routing do routes { RedisWebManager::Engine.routes } describe 'routing' do it 'routes to #index' do expect(get: '/keys').to( route_to('redis_web_manager/keys#index') ) end it 'routes to #show' do expect(get: '/key').to( route_to('redis_web_manager/keys#show') ) end it 'routes to #edit' do expect(get: '/key/edit').to( route_to('redis_web_manager/keys#edit') ) end it 'routes to #update' do expect(put: '/keys').to( route_to('redis_web_manager/keys#update') ) end it 'routes to #destroy' do expect(delete: '/keys').to( route_to('redis_web_manager/keys#destroy') ) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
redis_web_manager-0.2.1 | spec/routing/keys_controller_spec.rb |
redis_web_manager-0.2.0 | spec/routing/keys_controller_spec.rb |
redis_web_manager-0.1.8 | spec/routing/keys_controller_spec.rb |