Skip to content

Commit

Permalink
a little more housekeeping and my first failing cuke
Browse files Browse the repository at this point in the history
  • Loading branch information
cheezy committed Sep 25, 2011
1 parent 89bc6a0 commit 6839597
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 9 deletions.
22 changes: 22 additions & 0 deletions Rakefile
@@ -1 +1,23 @@
require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
require 'cucumber'
require 'cucumber/rake/task'

RSpec::Core::RakeTask.new(:spec) do |spec|
spec.ruby_opts = "-I lib:spec"
spec.pattern = 'spec/**/*_spec.rb'
end
task :spec

Cucumber::Rake::Task.new(:features, "Run features") do |t|
t.profile = 'default'
end

task :lib do
$LOAD_PATH.unshift(File.expand_path("lib", File.dirname(__FILE__)))
end

desc 'Run all specs and cukes'
task :test => ['spec', 'features']

task :default => :test
9 changes: 1 addition & 8 deletions bin/testgen
@@ -1,10 +1,3 @@
#!/usr/bin/env ruby
require 'rubygems'
require 'thor'

class TestGenCommand < Thor
def app
end
end

TestGenCommand.start
print "nothing"
1 change: 1 addition & 0 deletions cucumber.yml
@@ -0,0 +1 @@
default: --no-source
2 changes: 2 additions & 0 deletions features/support/env.rb
@@ -0,0 +1,2 @@
require 'rspec/expectations'
require 'aruba/cucumber'
5 changes: 5 additions & 0 deletions features/testgen_project.feature
@@ -0,0 +1,5 @@
Feature: Generating a project with TestGen

Scenario: Generating the directory structure
When I run `testgen sample`
Then the output should contain "generating sample directory"
2 changes: 1 addition & 1 deletion lib/testgen.rb
@@ -1,5 +1,5 @@
require "testgen/version"

module Testgen
module TestGen
# Your code goes here...
end
1 change: 1 addition & 0 deletions testgen.gemspec
Expand Up @@ -22,4 +22,5 @@ Gem::Specification.new do |s|

s.add_development_dependency 'rspec', '>=2.6.0'
s.add_development_dependency 'cucumber', '>=1.0.0'
s.add_development_dependency 'aruba'
end

0 comments on commit 6839597

Please sign in to comment.