holidays/features/Holiday_NewYearsDay.feature

22 lines
584 B
Gherkin
Raw Permalink Normal View History

2024-08-14 21:45:24 +00:00
Feature: Define New Years Day Holiday
In order to properly identify when a day is the New Years Day Holiday
As a developer
I want to have a way to detect, and return this condition
Background:
Given I have a NewYears Holiday Object
Scenario: verify the name
Then the name will be "New Years Day"
Scenario: verify the description
Then the description will be "January 1st"
Scenario: verify a valid date
When I check "2022-01-01"
Then it returns true
Scenario: verify a non-valid date
When I check "2022-12-25"
Then it will return false