Sha256: 74ce292ab8924c2bb60dd4c663ab54e5837c9967770df88069786700418bff4c

Contents?: true

Size: 449 Bytes

Versions: 9

Compression:

Stored size: 449 Bytes

Contents

# frozen_string_literal: true

require 'rails_helper'

RSpec.describe RedisWebManager::ConfigurationController, type: :routing do
  routes { RedisWebManager::Engine.routes }

  let(:default) do
    RedisWebManager.redises.keys[0]
  end

  describe 'routing' do
    it 'routes to #index' do
      expect(get: "/#{default}/configuration").to(
        route_to('redis_web_manager/configuration#index', instance: default.to_s)
      )
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
redis_web_manager-0.3.9 spec/routing/configuration_controller_spec.rb
redis_web_manager-0.3.8 spec/routing/configuration_controller_spec.rb
redis_web_manager-0.3.6 spec/routing/configuration_controller_spec.rb
redis_web_manager-0.3.5 spec/routing/configuration_controller_spec.rb
redis_web_manager-0.3.4 spec/routing/configuration_controller_spec.rb
redis_web_manager-0.3.3 spec/routing/configuration_controller_spec.rb
redis_web_manager-0.3.2 spec/routing/configuration_controller_spec.rb
redis_web_manager-0.3.1 spec/routing/configuration_controller_spec.rb
redis_web_manager-0.3.0 spec/routing/configuration_controller_spec.rb