Sha256: 21c533e9090089c05fcb6ca445e3553c8411ff96332124b30e6a77d4a0f196ca

Contents?: true

Size: 417 Bytes

Versions: 10

Compression:

Stored size: 417 Bytes

Contents

# frozen_string_literal: true

require 'rails_helper'

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

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

  describe 'GET #index' do
    it 'returns a success response' do
      get :index, params: { instance: default.to_s }
      expect(response).to be_successful
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

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