Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adds aruba #9

  • Loading branch information...
commit 126bd9ba9793cd1e8271b0762eb74a77c9160229 1 parent 9c751d2
@stephenmckinney stephenmckinney authored
View
8 Rakefile
@@ -1,9 +1,15 @@
+require 'cucumber/rake/task'
require 'rspec/core/rake_task'
require 'bundler/gem_tasks'
require 'yard'
-task :default => :spec
+task :default => :test
+
+Cucumber::Rake::Task.new(:cucumber)
RSpec::Core::RakeTask.new(:spec)
YARD::Rake::YardocTask.new(:doc)
+
+desc 'Run tests, both RSpec and Cucumber'
+task :test => [:spec, :cucumber]
View
12 features/configuration.feature
@@ -0,0 +1,12 @@
+@announce
+Feature: Configure pomo
+ In order to use pomo
+ As a user
+ I want a sane default configuration for my system
+ and a data file to store my tasks
+
+ Scenario: Execute pomo for first time
+ When I run `pomo`
+ Then the following files should exist:
+ | /tmp/home/.pomo |
+ | /tmp/home/.pomorc |
View
12 features/support/env.rb
@@ -0,0 +1,12 @@
+require 'aruba/cucumber'
+
+Before do
+ @original_home = ENV['HOME']
+ ENV['HOME'] = '/tmp/home'
+ FileUtils.rm_rf '/tmp/home'
+ FileUtils.mkdir '/tmp/home'
+end
+
+After do
+ ENV['HOME'] = @original_home
+end
View
1  pomo.gemspec
@@ -28,6 +28,7 @@ Gem::Specification.new do |spec|
spec.add_dependency('growl', '~> 1.0') if Pomo::OS.mac? || Pomo::OS.windows?
spec.add_dependency('libnotify', '~> 0.8') if Pomo::OS.linux?
+ spec.add_development_dependency('aruba', '~> 0.5.1')
spec.add_development_dependency('rspec', '~> 2.12')
spec.add_development_dependency('yard')
end
Please sign in to comment.
Something went wrong with that request. Please try again.