require "./spec_helper" require "../src/timecost/git_reader" require "../src/timecost/commit" describe TimeCost::GitReader do describe ".new" do it "can be created" do reader = TimeCost::GitReader.new end end describe ".parse" do it "returns a list of commits" do reader = TimeCost::GitReader.new res = reader.parse end it "should accept a list of filters" do reader = TimeCost::GitReader.new reader.branches_filter = "53c01d0db42ac662ed1aff3799d2a92a04e03908" res = reader.parse end end end