• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pulibrary / oawaiver / 40ca2f09-e694-44a5-b909-7cce179b9e67

11 Jul 2024 05:42PM UTC coverage: 0.0% (-80.4%) from 80.383%
40ca2f09-e694-44a5-b909-7cce179b9e67

push

circleci

jrgriffiniii
Trying to expand the RSpec test suite for EmployeesController#ajax_search

0 of 1206 relevant lines covered (0.0%)

0.0 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/app/controllers/accounts_controller.rb
1
# frozen_string_literal: true
2

3
class AccountsController < ApplicationController
×
4
  before_action :authenticate_account!
×
5
  respond_to :html
×
6

7
  # POST /accounts
8
  def create
×
9
    @account = Account.new(account_params)
×
10

11
    return redirect_to manage_url, notice: "Account successfully created for #{@account.netid}" if @account.save
×
12
    redirect_to manage_url, error: "Could not create a new account for #{@account.netid}"
×
13
  end
×
14

15
  # DELETE /accounts/:id
16
  def destroy
×
17
    @account = Account.find(account_id)
×
18
    @account.destroy
×
19

20
    redirect_to manage_url, notice: "Account for #{@account.email} was successfully destroyed."
×
21
  end
×
22

23
  private
×
24

25
  def account_id
×
26
    params[:id]
×
27
  end
×
28

29
  # Never trust parameters from the scary internet, only allow the white list through.
30
  def account_params
×
31
    output = params.require(:account)
×
32
    output.permit(:netid)
×
33
  end
×
34
end
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc