Sha256: 73570e4500f6e05dd1e3f950ae03a932f7b9dc498147d16e7dedd78e08274af6
Contents?: true
Size: 616 Bytes
Versions: 1
Compression:
Stored size: 616 Bytes
Contents
require_relative "../test_helper" require "stig" require "stig/generators/date" include Stig setup { Stig::Generators::Date } test "generates Dates" do |mod| property(mod) do |date| assert_equal date.class, Date true end end test "defaults between January 1, 4713 BCE and Date.today" do |mod| range = Date.new..Date.today property(mod) do |date| assert range.cover?(date) true end end test "takes a Date Range" do |mod| range = Date.new(0)..Date.new(5) generator = generator_for(mod, range) property(generator) do |date| assert range.cover?(date) true end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
stig-0.1.0 | test/stig/date_generator.rb |