Skip to content

Commit

Permalink
Lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
neb417 committed Jan 13, 2024
1 parent 539f8ee commit eae6772
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
30 changes: 15 additions & 15 deletions app/services/income_tax_calculator_service.rb
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
class IncomeTaxCalculatorService
attr_reader :income,
:annual_income,
:fica_tax,
:agi_deduction,
:agi,
:federal_income_tax,
:total_federal_tax,
:net_after_fed_tax,
:state_tax,
:total_net_income,
:bi_weekly_net_income,
:daily_income,
:monthly_income,
:weekly_income,
:quarterly_income,
:biannual_income
:annual_income,
:fica_tax,
:agi_deduction,
:agi,
:federal_income_tax,
:total_federal_tax,
:net_after_fed_tax,
:state_tax,
:total_net_income,
:bi_weekly_net_income,
:daily_income,
:monthly_income,
:weekly_income,
:quarterly_income,
:biannual_income

def initialize(income:)
@income = income
Expand Down
10 changes: 5 additions & 5 deletions spec/services/income_tax_calculator_service_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

require('rails_helper')
require("rails_helper")

RSpec.describe IncomeTaxCalculatorService, type: :service do
let(:salary) { create(:income) }
Expand All @@ -9,11 +9,11 @@
let!(:taxed_salary) { IncomeTaxCalculatorService.new(income: salary) }
let!(:taxed_hourly) { IncomeTaxCalculatorService.new(income: hourly) }

describe 'income taxes calculator' do
describe "income taxes calculator" do
it { expect(taxed_salary).to be_an IncomeTaxCalculatorService }
it { expect(taxed_hourly).to be_an IncomeTaxCalculatorService }

it 'calculates salary' do
it "calculates salary" do
expect(taxed_salary.income).to be_truthy
expect(taxed_salary.annual_income).to be_truthy
expect(taxed_salary.fica_tax).to be_truthy
Expand All @@ -32,7 +32,7 @@
expect(taxed_salary.biannual_income).to be_truthy
end

it 'calculates hourly' do
it "calculates hourly" do
expect(taxed_hourly.income).to be_truthy
expect(taxed_hourly.annual_income).to be_truthy
expect(taxed_hourly.fica_tax).to be_truthy
Expand All @@ -51,4 +51,4 @@
expect(taxed_hourly.biannual_income).to be_truthy
end
end
end
end

0 comments on commit eae6772

Please sign in to comment.