ardekantur-gantty 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/gantty.rb +1 -1
  2. data/spec/gantty_spec.rb +4 -0
  3. metadata +1 -1
data/lib/gantty.rb CHANGED
@@ -29,7 +29,7 @@ module Gantty
29
29
  end
30
30
 
31
31
  def current_tasks date = Date.today
32
- @tasks.select { |t| t.start < date and t.end > date }
32
+ @tasks.select { |t| t.start <= date and t.end >= date }
33
33
  end
34
34
 
35
35
  end
data/spec/gantty_spec.rb CHANGED
@@ -17,5 +17,9 @@ describe "Gantty" do
17
17
  it "should return a list of all current tasks" do
18
18
  @gantt.current_tasks(Date.new(2008, 10, 18)).size.should == 9
19
19
  end
20
+
21
+ it "should include tasks starting today as current tasks for today" do
22
+ @gantt.current_tasks(Date.new(2008, 11, 3)).size.should == 8
23
+ end
20
24
 
21
25
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ardekantur-gantty
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ardekantur