Sha256: e0ff11031584d31fd02b95234f53a7bac0e5df89a46e3ce03381339d55095cee

Contents?: true

Size: 390 Bytes

Versions: 30

Compression:

Stored size: 390 Bytes

Contents

require 'rails_helper'
require 'byebug'

RSpec.describe Admin::UsersController, type: :controller do
  let(:user) { create(:user) }

  describe 'Filter role' do
    it 'POST to filter role' do
      sign_in user
      post :filter_by_role, format: 'js', xhr: true
      expect(response).to have_http_status(200)
      expect(response).to render_template('filter_by_role')
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
keppler-2.1.22 installer/core/spec/controllers/admin/users_controller_spec.rb
keppler-2.1.21 installer/core/spec/controllers/admin/users_controller_spec.rb
keppler-2.1.20 installer/core/spec/controllers/admin/users_controller_spec.rb
keppler-2.1.19 installer/core/spec/controllers/admin/users_controller_spec.rb
keppler-2.1.18 installer/core/spec/controllers/admin/users_controller_spec.rb
keppler-2.1.17 installer/core/spec/controllers/admin/users_controller_spec.rb
keppler-2.1.16 installer/core/spec/controllers/admin/users_controller_spec.rb
keppler-2.1.15 installer/core/spec/controllers/admin/users_controller_spec.rb
keppler-2.1.14 installer/core/spec/controllers/admin/users_controller_spec.rb
keppler-2.1.13 installer/core/spec/controllers/admin/users_controller_spec.rb
keppler-2.1.12 installer/core/spec/controllers/admin/users_controller_spec.rb
keppler-2.1.11 installer/core/spec/controllers/admin/users_controller_spec.rb
keppler-2.1.10 installer/core/spec/controllers/admin/users_controller_spec.rb
keppler-2.1.9 installer/core/spec/controllers/admin/users_controller_spec.rb
keppler-2.1.8 installer/core/spec/controllers/admin/users_controller_spec.rb
keppler-2.1.7 installer/core/spec/controllers/admin/users_controller_spec.rb
keppler-2.1.6 installer/core/spec/controllers/admin/users_controller_spec.rb
keppler-2.1.5 installer/core/spec/controllers/admin/users_controller_spec.rb
keppler-2.1.4 installer/core/spec/controllers/admin/users_controller_spec.rb
keppler-2.1.3 installer/core/spec/controllers/admin/users_controller_spec.rb