Sha256: 0e7e03929648613090dbe6addcb7e3f6b8278509625f6bee35b90dcce9704880
Contents?: true
Size: 842 Bytes
Versions: 14
Compression:
Stored size: 842 Bytes
Contents
# frozen_string_literal: true require 'rails_helper' RSpec.describe RedisWebManager::ApplicationController, type: :controller do describe 'Methods' do it 'returns a raise value (authenticated?)' do expect do controller.send(:authenticated?) end.to raise_error(LocalJumpError) end it 'returns a nil value (authenticate)' do expect(controller.send(:authenticate)).to eql(nil) end it 'returns a Info class (info)' do expect(controller.send(:info)).to be_a_kind_of(RedisWebManager::Info) end it 'returns a Connection class (connection)' do expect(controller.send(:connection)).to be_a_kind_of(RedisWebManager::Connection) end it 'returns a Action class (action)' do expect(controller.send(:action)).to be_a_kind_of(RedisWebManager::Action) end end end
Version data entries
14 entries across 14 versions & 1 rubygems