Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Corrected steps for cleanup.

After previous changes, 'clean' was not being validated by features.
  • Loading branch information...
commit 392af914b2b6a61896f21d53fca637c23716b071 1 parent 61d411b
@luislavena luislavena authored
View
2  features/compile.feature
@@ -59,7 +59,7 @@ Feature: Compile C code into Ruby extensions.
When rake task 'clean' is invoked
Then rake task 'clean' succeeded
And binary extension 'extension_one' do exist in 'lib'
- And 'tmp' folder do not exist
+ And no left over from 'extension_one' remains in 'tmp'
Scenario: clobbering binary and temporary files
Given a safe project directory
View
4 features/step_definitions/folders.rb
@@ -26,3 +26,7 @@
Then /^'(.*)' folder do not exist$/ do |folder|
File.directory?(folder).should_not be_true
end
+
+Then /^no left over from '(.*)' remains in '(.*)'$/ do |name, folder|
+ Dir.glob("#{folder}/**/#{name}").should be_empty
+end
Please sign in to comment.
Something went wrong with that request. Please try again.