Sha256: 28a5c969ec3ea0cf82e53d1fbd9a41cd6d54dffb1e6514259852af6e1ca73e7e

Contents?: true

Size: 413 Bytes

Versions: 10

Compression:

Stored size: 413 Bytes

Contents

# frozen_string_literal: true

require 'rails_helper'

RSpec.describe RedisWebManager::DashboardController, 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/dashboard_controller_spec.rb
redis_web_manager-0.3.9 spec/controllers/redis_web_manager/dashboard_controller_spec.rb
redis_web_manager-0.3.8 spec/controllers/redis_web_manager/dashboard_controller_spec.rb
redis_web_manager-0.3.6 spec/controllers/redis_web_manager/dashboard_controller_spec.rb
redis_web_manager-0.3.5 spec/controllers/redis_web_manager/dashboard_controller_spec.rb
redis_web_manager-0.3.4 spec/controllers/redis_web_manager/dashboard_controller_spec.rb
redis_web_manager-0.3.3 spec/controllers/redis_web_manager/dashboard_controller_spec.rb
redis_web_manager-0.3.2 spec/controllers/redis_web_manager/dashboard_controller_spec.rb
redis_web_manager-0.3.1 spec/controllers/redis_web_manager/dashboard_controller_spec.rb
redis_web_manager-0.3.0 spec/controllers/redis_web_manager/dashboard_controller_spec.rb