Skip to content

Commit

Permalink
Add specs for DateTime#yday
Browse files Browse the repository at this point in the history
Again by using the shared specs of Time#yday
  • Loading branch information
herwinw committed Jun 29, 2024
1 parent df01d74 commit 02ee0aa
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions library/datetime/yday_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
require_relative '../../spec_helper'
require_relative '../../shared/time/yday'
require 'date'

describe "DateTime#yday" do
it_behaves_like :time_yday, -> year, month, day { DateTime.new(year, month, day).yday }
end

0 comments on commit 02ee0aa

Please sign in to comment.