Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
kudrykv committed Nov 8, 2024
1 parent 4b55a11 commit 0cb9f58
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions spec/latex_yearly_planner/calendar/month_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,18 @@
it { expect(month.quarter).to eq(quarter) }
end

describe '#first_day' do
let(:first_day) { Day.new(weekday_start:, moment: Date.new(year, month_number, 1)) }

it { expect(month.first_day).to eq(first_day) }
end

describe '#last_day' do
let(:last_day) { Day.new(weekday_start:, moment: Date.new(year, month_number, 30)) }

it { expect(month.last_day).to eq(last_day) }
end

describe '#==' do
let(:other) { described_class.new(month: month_number, year:, weekday_start:) }

Expand Down

0 comments on commit 0cb9f58

Please sign in to comment.