Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated wording for compilation feature.

Corrected steps to match.
  • Loading branch information...
commit ff6ad437b2c837afd5f6cea89af30d4d71bf42b7 1 parent 187ebaf
@luislavena luislavena authored
View
18 features/compile.feature
@@ -6,7 +6,7 @@ Feature: Compile C code into Ruby extensions.
Scenario: compile single extension
Given a safe project directory
- And scaffold code for extension 'extension_one'
+ And a extension named 'extension_one'
And 'tmp' folder is deleted
When rake task 'compile' is invoked
Then rake task 'compile' succeeded
@@ -15,7 +15,7 @@ Feature: Compile C code into Ruby extensions.
Scenario: not recompile unmodified extension
Given a safe project directory
- And scaffold code for extension 'extension_one'
+ And a extension named 'extension_one'
And I've already successfully executed rake task 'compile'
And not changed any file since
When rake task 'compile' is invoked
@@ -24,7 +24,7 @@ Feature: Compile C code into Ruby extensions.
Scenario: recompile extension when source is modified
Given a safe project directory
- And scaffold code for extension 'extension_one'
+ And a extension named 'extension_one'
And I've already successfully executed rake task 'compile'
When touching 'source.c' file of extension 'extension_one'
And rake task 'compile' is invoked
@@ -33,8 +33,8 @@ Feature: Compile C code into Ruby extensions.
Scenario: compile multiple extensions
Given a safe project directory
- And scaffold code for extension 'extension_one'
- And scaffold code for extension 'extension_two'
+ And a extension named 'extension_one'
+ And a extension named 'extension_two'
And 'tmp' folder is deleted
When rake task 'compile' is invoked
Then rake task 'compile' succeeded
@@ -44,8 +44,8 @@ Feature: Compile C code into Ruby extensions.
Scenario: compile one extension instead of all present
Given a safe project directory
- And scaffold code for extension 'extension_one'
- And scaffold code for extension 'extension_two'
+ And a extension named 'extension_one'
+ And a extension named 'extension_two'
When rake task 'compile:extension_one' is invoked
Then rake task 'compile:extension_one' succeeded
And output of rake task 'compile:extension_one' do not contain /extension_two/
@@ -54,7 +54,7 @@ Feature: Compile C code into Ruby extensions.
Scenario: removing temporary files
Given a safe project directory
- And scaffold code for extension 'extension_one'
+ And a extension named 'extension_one'
And I've already successfully executed rake task 'compile'
When rake task 'clean' is invoked
Then rake task 'clean' succeeded
@@ -63,7 +63,7 @@ Feature: Compile C code into Ruby extensions.
Scenario: clobbering binary and temporary files
Given a safe project directory
- And scaffold code for extension 'extension_one'
+ And a extension named 'extension_one'
And I've already successfully executed rake task 'compile'
When rake task 'clobber' is invoked
Then rake task 'clobber' succeeded
View
10 features/step_definitions/compilation.rb
@@ -1,6 +1,6 @@
-Given /^scaffold code for extension '(.*)'$/ do |extension_name|
- setup_scaffold
- setup_task_for extension_name
+Given /^a extension named '(.*)'$/ do |extension_name|
+ setup_extension_scaffold
+ setup_extension_task_for extension_name
setup_source_for extension_name
end
@@ -22,7 +22,7 @@
end
end
-def setup_scaffold
+def setup_extension_scaffold
# create folder structure
FileUtils.mkdir_p "lib"
FileUtils.mkdir_p "tasks"
@@ -34,7 +34,7 @@ def setup_scaffold
end
end
-def setup_task_for(extension_name)
+def setup_extension_task_for(extension_name)
# create folder structure
FileUtils.mkdir_p "ext/#{extension_name}"
Please sign in to comment.
Something went wrong with that request. Please try again.