From fad19a1ff6531d82ffcc43259507d8990aca9a74 Mon Sep 17 00:00:00 2001 From: Steve McKinney Date: Wed, 19 Dec 2012 00:29:33 -0500 Subject: [PATCH] Adds pending specs #9 --- lib/pomo/github_task.rb | 6 ------ lib/pomo/task.rb | 7 +++++++ spec/pomo/configuration_spec.rb | 9 +++++++++ spec/pomo/github_task_spec.rb | 13 +++++++++++++ spec/pomo/list_spec.rb | 12 ++++++++++++ spec/pomo/task_spec.rb | 17 +++++++++++++++++ spec/pomo_spec.rb | 8 -------- 7 files changed, 58 insertions(+), 14 deletions(-) create mode 100644 spec/pomo/configuration_spec.rb create mode 100644 spec/pomo/github_task_spec.rb create mode 100644 spec/pomo/list_spec.rb create mode 100644 spec/pomo/task_spec.rb delete mode 100644 spec/pomo_spec.rb diff --git a/lib/pomo/github_task.rb b/lib/pomo/github_task.rb index df69768..822a882 100644 --- a/lib/pomo/github_task.rb +++ b/lib/pomo/github_task.rb @@ -1,11 +1,5 @@ module Pomo - class Task - def github? - false - end - end - class GithubTask < Task ## diff --git a/lib/pomo/task.rb b/lib/pomo/task.rb index c883afe..b8b5de0 100644 --- a/lib/pomo/task.rb +++ b/lib/pomo/task.rb @@ -59,6 +59,13 @@ def complete? complete end + ## + # Check if the task is a github issue. + + def github? + false + end + ## # Start timing the task. def start(config, options = {}) diff --git a/spec/pomo/configuration_spec.rb b/spec/pomo/configuration_spec.rb new file mode 100644 index 0000000..f08b33a --- /dev/null +++ b/spec/pomo/configuration_spec.rb @@ -0,0 +1,9 @@ +require 'spec_helper' + +describe Pomo::Configuration do + + describe '#initialize' do + it 'does nada' + end + +end diff --git a/spec/pomo/github_task_spec.rb b/spec/pomo/github_task_spec.rb new file mode 100644 index 0000000..94f63cc --- /dev/null +++ b/spec/pomo/github_task_spec.rb @@ -0,0 +1,13 @@ +require 'spec_helper' + +describe Pomo::GithubTask do + + let(:github_task) { Pomo::GithubTask.new 'foo' } + + describe '#github?' do + it 'returns true' do + expect(github_task.github?).to be_true + end + end + +end diff --git a/spec/pomo/list_spec.rb b/spec/pomo/list_spec.rb new file mode 100644 index 0000000..3707a1d --- /dev/null +++ b/spec/pomo/list_spec.rb @@ -0,0 +1,12 @@ +require 'spec_helper' + +describe Pomo::List do + + describe '#initialize' do + it 'does nada' + end + + describe '#find' do + it 'does nada' + end +end diff --git a/spec/pomo/task_spec.rb b/spec/pomo/task_spec.rb new file mode 100644 index 0000000..df9eb80 --- /dev/null +++ b/spec/pomo/task_spec.rb @@ -0,0 +1,17 @@ +require 'spec_helper' + +describe Pomo::Task do + + let(:task) { Pomo::Task.new 'foo' } + + describe '#start' do + it 'does nada' + end + + describe '#github?' do + it 'returns false' do + expect(task.github?).to be_false + end + end + +end diff --git a/spec/pomo_spec.rb b/spec/pomo_spec.rb deleted file mode 100644 index f156690..0000000 --- a/spec/pomo_spec.rb +++ /dev/null @@ -1,8 +0,0 @@ - -require File.dirname(__FILE__) + '/spec_helper' - -describe Pomo do - it "should description" do - - end -end \ No newline at end of file