Sha256: 9bce877b27f018cfb055767570e62d408e0e0622f798d57cf22704fcbe4237a0
Contents?: true
Size: 1.6 KB
Versions: 2
Compression:
Stored size: 1.6 KB
Contents
# -*- coding: utf-8 -*- require 'minitest/autorun' require 'simplecov' SimpleCov.start describe Fab do let(:fab){ Fab.new } describe "#date" do before do @x = fab.date end it "returns a date" do @x.must_be_kind_of Date end end describe "#date_min" do before do @x = fab.date_min end it "returns a date" do @x.must_be_kind_of Date end end describe "#date_min=" do before do @x = Date.today end it "sets & gets" do fab.date_min = @x fab.date_min.must_equal @x end end describe "#date_max" do before do @x = fab.date_max end it "returns a date" do @x.must_be_kind_of Date end end describe "#date_max=" do before do @x = Date.today end it "sets & gets" do fab.date_max = @x fab.date_max.must_equal @x end end describe "#start_date" do before do @x = fab.start_date end it "returns a date" do @x.must_be_kind_of Date end end describe "#stop_date" do before do @x = fab.stop_date end it "returns a date" do @x.must_be_kind_of Date end end describe "#start_date_and_stop_date" do before do @start, @stop = @x = fab.start_date_and_stop_date end it "is an array" do @x.must_be_kind_of Array end it "contains a start date and stop date" do @start.must_be_kind_of Date @stop.must_be_kind_of Date end it "ensures start <= stop" do @start.must_be :<=, @stop end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sixarm_ruby_fab-1.0.2 | test/sixarm_ruby_fab_test/date_test.rb |
sixarm_ruby_fab-1.0.1 | test/sixarm_ruby_fab_test/date_test.rb |