Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Housekeeping: Creating a project example is more correct. Features in…

… folders
  • Loading branch information...
commit e227de52996199b0939ff775c168d2c16199e1d9 1 parent 27d9ba4
@antonymarcano antonymarcano authored
View
17 features/creating_a_new_project.feature
@@ -5,20 +5,7 @@ Feature: Creating a New Project
Scenario: Set up your project and verify that you can use CukeSalad
Given you are a Step Free Cuker
- And you were able to create directories: as follows
- """
- features
- features/lib
- features/lib/roles
- features/lib/tasks
- features/support
- """
- And you were able to create a file: at 'features/support/env.rb' containing
- """
- $:.unshift(File.dirname(__FILE__) + "/../../../../lib") #where to find CukeSalad
-
- require "cukesalad"
- """
+ And you were able to interactively run, the command 'cukesalad' and type 'y'
And you were able to create a file: at 'features/hello_cukesalad.feature' containing
"""
Feature: Hello CukeSalad
@@ -31,4 +18,4 @@ Feature: Creating a New Project
"""
CukeSalad says: Hello!!
"""
- And you should see it has 'passed'
+ And you should see it has 'passed'
View
0  features/define_a_role.feature → features/defining_roles/define_a_role.feature
File renamed without changes
View
0  features/prepare_the_actor_for_the_role.feature → ...ning_roles/prepare_the_actor_for_the_role.feature
File renamed without changes
View
0  features/define_a_task.feature → features/defining_tasks/define_a_task.feature
File renamed without changes
View
0  features/define_a_task_with_arguments.feature → ...fining_tasks/define_a_task_with_arguments.feature
File renamed without changes
View
0  features/expressing_expectations.feature → ...ures/expectations/expressing_expectations.feature
File renamed without changes
View
5 features/lib/tasks/interactively_run.rb
@@ -0,0 +1,5 @@
+in_order_to "interactively run", the_command: :command, and_type: :answer do
+ @aruba_timeout_seconds = 10
+ run_interactive unescape( the :command )
+ type "#{the :answer}\n"
+end
View
2  lib/cukesalad/cli.rb
@@ -54,7 +54,7 @@ def create_cukesalad_structure
def configure
cd "features/support"
- content = "require 'cukesalad'\n begin require 'rspec/expectations'; rescue LoadError; require 'spec/expectations'; end"
+ content = "\nrequire 'cukesalad'\nbegin require 'rspec/expectations'; rescue LoadError; require 'spec/expectations'; end"
append_to_file "env.rb",content
end
View
2  spec/cukesalad/cli_spec.rb
@@ -42,7 +42,7 @@ def file_content file
end
it 'env.rb has the right content' do
- content = "require 'cukesalad'\n begin require 'rspec/expectations'; rescue LoadError; require 'spec/expectations'; end"
+ content = "\nrequire 'cukesalad'\nbegin require 'rspec/expectations'; rescue LoadError; require 'spec/expectations'; end"
file_content(file).should == content
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.