Sha256: 558c2a8edd9ae8f55d26e44dc68aa241756a68416ea1b13d8f93418da86bcfc7

Contents?: true

Size: 415 Bytes

Versions: 10

Compression:

Stored size: 415 Bytes

Contents

# frozen_string_literal: true

require 'rails_helper'

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