Skip to content

Commit

Permalink
fixing include paths so everyone can actually work on prologue, hat tip
Browse files Browse the repository at this point in the history
to 21croissants
  • Loading branch information
Collin Schaafsma committed Oct 29, 2010
1 parent 01d7982 commit 8e86c0e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
prologue (0.2.0)
prologue (0.3.1)
rails (>= 3.0.0)
thor

Expand Down
1 change: 1 addition & 0 deletions bin/prologue
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env ruby
$:.unshift(File.dirname(__FILE__) + '/../lib') unless $:.include?(File.dirname(__FILE__) + '/../lib')
require 'prologue/cli'
Prologue::CLI.start
6 changes: 1 addition & 5 deletions features/new.feature
Original file line number Diff line number Diff line change
@@ -1,41 +1,37 @@
@disable-bundler
Feature: Generate new prologue app
In order to start a new project with prologue
As a CLI
I want to generate a rails3 app with prologue

@disable-bundler
Scenario: Run prologue new my_app
When I run "prologue new my_app"
Then the output should contain "Building authentication"
And the output should contain "Building roles"
And the output should contain "Building admin"
And the output should contain "Prologue just added like 6 hours to your life."

@disable-bundler
Scenario: Run prologue new my_app --no-auth
When I run "prologue new my_app --no-auth"
Then the output should not contain "Building authentication"
And the output should not contain "Building roles"
And the output should not contain "Building admin"
And the output should contain "Prologue just added like 6 hours to your life."

@disable-bundler
Scenario: Run prologue new my_app --no-roles
When I run "prologue new my_app --no-roles"
Then the output should contain "Building authentication"
And the output should not contain "Building roles"
And the output should contain "Building admin"
And the output should contain "Prologue just added like 6 hours to your life."

@disable-bundler
Scenario: Run prologue new my_app --no-admin
When I run "prologue new my_app --no-admin"
Then the output should contain "Building authentication"
And the output should contain "Building roles"
And the output should not contain "Building admin"
And the output should contain "Prologue just added like 6 hours to your life."

@disable-bundler
Scenario: Run prologue new my_app --no-admin --no-roles
When I run "prologue new my_app --no-admin --no-roles"
Then the output should contain "Building authentication"
Expand Down
4 changes: 4 additions & 0 deletions lib/prologue.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
$:.unshift(File.dirname(__FILE__) + '/../lib') unless $:.include?(File.dirname(__FILE__) + '/../lib')
require 'prologue/version'
require 'prologue/cli'

module Prologue

end
1 change: 0 additions & 1 deletion lib/prologue/cli.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
require 'thor'
require 'thor/actions'
require 'active_support/secure_random'
require 'prologue/version'

module Prologue
class CLI < Thor
Expand Down

0 comments on commit 8e86c0e

Please sign in to comment.