Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
a little more housekeeping and my first failing cuke
- Loading branch information
Showing
7 changed files
with
33 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,3 @@ | ||
#!/usr/bin/env ruby | ||
require 'rubygems' | ||
require 'thor' | ||
|
||
class TestGenCommand < Thor | ||
def app | ||
end | ||
end | ||
|
||
TestGenCommand.start | ||
print "nothing" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
default: --no-source |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
require 'rspec/expectations' | ||
require 'aruba/cucumber' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
require "testgen/version" | ||
|
||
module Testgen | ||
module TestGen | ||
# Your code goes here... | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters