From eae67720d26ca9739dd285dc1f1c6d2a59c3fa9b Mon Sep 17 00:00:00 2001 From: Benjamin Randolph Date: Sat, 13 Jan 2024 07:53:40 -0700 Subject: [PATCH] Lint. --- app/services/income_tax_calculator_service.rb | 30 +++++++++---------- .../income_tax_calculator_service_spec.rb | 10 +++---- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/app/services/income_tax_calculator_service.rb b/app/services/income_tax_calculator_service.rb index 6bbd627..f8895c9 100644 --- a/app/services/income_tax_calculator_service.rb +++ b/app/services/income_tax_calculator_service.rb @@ -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 diff --git a/spec/services/income_tax_calculator_service_spec.rb b/spec/services/income_tax_calculator_service_spec.rb index 929c5dc..eaa8512 100644 --- a/spec/services/income_tax_calculator_service_spec.rb +++ b/spec/services/income_tax_calculator_service_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require('rails_helper') +require("rails_helper") RSpec.describe IncomeTaxCalculatorService, type: :service do let(:salary) { create(:income) } @@ -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 @@ -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 @@ -51,4 +51,4 @@ expect(taxed_hourly.biannual_income).to be_truthy end end -end \ No newline at end of file +end