Skip to content

Commit

Permalink
Adds pending specs #9
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenmckinney committed Jan 18, 2013
1 parent 4920794 commit fad19a1
Show file tree
Hide file tree
Showing 7 changed files with 58 additions and 14 deletions.
6 changes: 0 additions & 6 deletions lib/pomo/github_task.rb
@@ -1,11 +1,5 @@

module Pomo
class Task
def github?
false
end
end

class GithubTask < Task

##
Expand Down
7 changes: 7 additions & 0 deletions lib/pomo/task.rb
Expand Up @@ -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 = {})
Expand Down
9 changes: 9 additions & 0 deletions spec/pomo/configuration_spec.rb
@@ -0,0 +1,9 @@
require 'spec_helper'

describe Pomo::Configuration do

describe '#initialize' do
it 'does nada'
end

end
13 changes: 13 additions & 0 deletions 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
12 changes: 12 additions & 0 deletions 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
17 changes: 17 additions & 0 deletions 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
8 changes: 0 additions & 8 deletions spec/pomo_spec.rb

This file was deleted.

0 comments on commit fad19a1

Please sign in to comment.