Sha256: a9c564ece3e116d2c546c78715db3cf01ddc170f6668a71b75fd0f32900a8916
Contents?: true
Size: 1.59 KB
Versions: 2
Compression:
Stored size: 1.59 KB
Contents
# -*- coding: utf-8 -*- require 'minitest/autorun' require 'simplecov' SimpleCov.start describe Fab do let(:fab){ Fab.new } describe "#time" do before do @x = fab.time end it "is a time" do @x.must_be_kind_of Time end end describe "#time_min" do before do @x = fab.time_min end it "returns a time" do @x.must_be_kind_of Time end end describe "#time_min=" do before do @x = Time.now end it "sets & gets" do fab.time_min = @x fab.time_min.must_equal @x end end describe "#time_max" do before do @x = fab.time_max end it "returns a time" do @x.must_be_kind_of Time end end describe "#time_max=" do before do @x = Time.now end it "sets & gets" do fab.time_max = @x fab.time_max.must_equal @x end end describe "#start_time" do before do @x = fab.start_time end it "returns a time" do @x.must_be_kind_of Time end end describe "#stop_time" do before do @x = fab.stop_time end it "returns a time" do fab.stop_time.must_be_kind_of Time end end describe "#start_time_and_stop_time" do before do @start, @stop = @x = fab.start_time_and_stop_time end it "is an array" do @x.must_be_kind_of Array end it "contains a start time and stop time" do @start.must_be_kind_of Time @stop.must_be_kind_of Time 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/time_test.rb |
sixarm_ruby_fab-1.0.1 | test/sixarm_ruby_fab_test/time_test.rb |