问题描述
所以我创建dotfiles目录,然后 cd
到dotfiles。然而,黄瓜aruba给我一个错误,说dotfiles不是一个目录。我不知道为什么是这样的?在pry中的代码导致正确的行为。
@creation
场景:创建一个dotfiles git仓库
给定目录dotfiles不存在主目录
当我成功运行`dotfiles init dotfile_one dotfile_two dotfile_three`
然后一个dotfiles目录应该存在于主目录
当我将目录更改为dotfiles目录### Fails here ## #
然后一个名为.git的文件应该存在
我的步骤
给定/ ^目录dotfiles在主目录中不存在$ / do
step%(名为#{ENV ['HOME']} / dotfiles不应该存在)
end
然后/ ^一个dotfiles目录应该存在于home目录$ / do
step%命名为#{ENV ['HOME']} / dotfiles应该存在)
end
当/ ^我将目录更改为dotfiles目录$ / do
step%我cd至#{ENV ['HOME']} / dotfiles)
end
before hook:
before('@ creation')do
FileUtils.rm_rf(File.join 'HOME'],'dotfiles'))
end
源
模块Dotfiles
类存储库
def self.init(location,dotfiles)
#创建dotfiles目录和git init
FileUtils.chdir(location)do
FileUtils.mkdir_p(File.join位置,'dotfiles')
end
FileUtils.chdir(File。 join location,'dotfiles')
end
end
end
错误的简短版本
当我将目录更改为dotfiles目录#features / step_definitions / aruba_steps.rb: 13
tmp / aruba / Users / Brian / dotfiles不是目录。 (RuntimeError)
以下是完整跟踪的错误
@creation
场景:创建一个dotfiles git repository#features / dotfiles_repository.feature:6
给定目录dotfiles不存在于主目录#功能/ step_definitions / aruba_steps.rb:5
当我成功运行`dotfiles init dotfile_one dotfile_two dotfile_three`#aruba-0.5.3 / lib / aruba / cucumber.rb:71
然后一个dotfiles目录应该存在在主目录#features / step_definitions / aruba_steps.rb:9
当我将目录更改为dotfiles目录#features / step_definitions / aruba_steps.rb:13
tmp / aruba / Users / Brian / dotfiles is不是目录。 (RuntimeError)
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/aruba-0.5.3/lib/aruba/api.rb:22:in`cd'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/aruba-0.5.3/lib/aruba/cucumber.rb:52:in`block in< top(必需)>'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/core_ext/instance_exec.rb:48:in`instance_exec'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/core_ext/instance_exec.rb:48:in`block in cucumber_instance_exec'
/用户/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/core_ext/instance_exec.rb:69:in`cucumber_run_with_backtrace_filtering'
/ Users / Brian /。 rvm / gems / ruby-2.0.0-p0 / gems / cucumber-1.3.4 / lib / cucumber / core_ext / instance_exec.rb:36:in`cucumber_instance_exec'
/Users/Brian/.rvm/gems/ ruby-2.0.0-p0 / gems / cucumber-1.3.4 / lib / cucumber / rb_support / rb_step_definition.rb:97:在`invoke'
/Users/Brian/.rvm/gems/ruby-2.0。 0-p0 / gems / cucumber-1.3.4 / lib / cucumber / step_match.rb:25:in`invoke'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/ cucumber-1.3.4 / lib / cucumber / runtime / support_code.rb:60:in`invoke'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3。 4 / lib / cucumber / rb_support / rb_world.rb:52:in'step'
/Users/Brian/gems/dotfiles/features/step_definitions/aruba_steps.rb:14:in`block in< top )>'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/core_ext/instance_exec.rb:48:in`instance_exec'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/core_ext/instance_exec.rb:48:in`block in cucumber_instance_exec'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/core_ext/instance_exec.rb:69:in`cucumber_run_with_backtrace_filtering'
/用户/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/core_ext/instance_exec.rb:36:in`cucumber_instance_exec'
/ Users / Brian /。 rvm / gems / ruby-2.0.0-p0 / gems / cucumber-1.3.4 / lib / cucumber / rb_support / rb_step_definition.rb:97:in`invoke'
/Users/Brian/.rvm/gems/ ruby-2.0.0-p0 / gems / cucumber-1.3.4 / lib / cucumber / step_match.rb:25:in`invoke'
/Users/Brian/.rvm/gems/ruby-2.0.0- p0 / gems / cucumber-1.3.4 / lib / cucumber / ast / step_invocation.rb:60:in`invoke'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/ cucumber-1.3.4 / lib / cucumber / ast / step_invocation.rb:38:in'accept'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3。 4 / lib / cucumber / ast / tree_walker.rb:106:在`block in visit_step'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/ lib / cucumber / ast / tree_walker.rb:170:in`broadcast'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/ ast / tree_walker.rb:105:in`visit_step'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/ast/step_collection。 rb:19:inblock in accept
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/ast/step_collection.rb: 18:in`each'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/ast/step_collection.rb:18:in` accept'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/ast/tree_walker.rb:100:in'block in visit_steps'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/ast/tree_walker.rb:170:in`broadcast'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/ast/tree_walker.rb:99:in`visit_steps'
/ Users / Brian /.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/ast/tree_walker.rb:15:in`block in execute'
/ Users / Brian /。 rvm / gems / ruby-2.0.0-p0 / gems / cucumber-1.3.4 / lib / cucumber / runtime.rb:82:in'block(2 levels)in with_hooks'
/ Users / Brian /。 rvm / gems / ruby-2.0.0-p0 / gems / cucumber-1.3.4 / lib / cucumber / runtime.rb:98:in`before_and_after'
/Users/Brian/.rvm/gems/ruby- 2.0.0-p0 / gems / cucumber-1.3.4 / lib / cucumber / runtime.rb:81:in`block in with_hooks'
/Users/Brian/.rvm/gems/ruby-2.0.0- p0 / gems / cucumber-1.3.4 / lib / cucumber / runtime / support_code.rb:120:in`call'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/ cucumber-1.3.4 / lib / cucumber / runtime / support_code.rb:120:在`block(3级)中'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/ gems / cucumber-1.3.4 / lib / cucumber / language_support / language_methods.rb:9:in`block in around'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/黄瓜1.3.4 / lib / cucumber / language_support / language_methods.rb:97:在`call'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3。 4 / lib / cucumber / language_support / language_methods.rb:97:in`execute_around'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/ cucumber / language_support / language_methods.rb:8:in`around'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/runtime/ support_code.rb:119:in'block(2 levels)in around'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/ runtime / support_code.rb:123:在`call'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/runtime/support_code。 rb:123:in`around'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/runtime.rb:93:in` around'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/runtime.rb:80:in`with_hooks'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/ast/tree_walker.rb:13:in`execute'
/ Users / Brian /.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/ast/scenario.rb:32:inblock in accept
/ Users / Brian /。 rvm / gems / ruby-2.0.0-p0 / gems / cucumber-1.3.4 / lib / cucumber / ast / scenario.rb:79:in'with_visitor'
/Users/Brian/.rvm/gems/ ruby-2.0.0-p0 / gems / cucumber-1.3.4 / lib / cucumber / ast / scenario.rb:31:在`accept'
/Users/Brian/.rvm/gems/ruby-2.0。 0-p0 / gems / cucumber-1.3.4 / lib / cucumber / ast / tree_walker.rb:58:inblock in visit_feature_element
/Users/Brian/.rvm/gems/ruby-2.0.0- p0 / gems / cucumber-1.3.4 / lib / cucumber / ast / tree_walker.rb:170:in`broadcast'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/ cucumber-1.3.4 / lib / cucumber / ast / tree_walker.rb:57:in`visit_feature_element'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3。 4 / lib / cucumber / ast / feature.rb:38:inblock in accept
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/ lib / cucumber / ast / feature.rb:37:in`each'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/ ast / feature.rb:37:在`accept'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/ast/tree_walker。 rb:27:in`block in visit_feature'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/ast/tree_walker.rb: 170:in`broadcast'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/ast/tree_walker.rb:26:in` visit_feature'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/ast/features.rb:28:in'block in accept'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/ast/features.rb:17:in`each'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/ast/features.rb:17:in`each'
/ Users / Brian /.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/ast/features.rb:27:in`accept'
/Users/Brian/.rvm/ gems / ruby-2.0.0-p0 / gems / cucumber-1.3.4 / lib / cucumber / ast / tree_walker.rb:21:in`block in visit_features'
/Users/Brian/.rvm/gems/ ruby-2.0.0-p0 / gems / cucumber-1.3.4 / lib / cucumber / ast / tree_walker.rb:170:in`broadcast'
/Users/Brian/.rvm/gems/ruby-2.0。 0-p0 / gems / cucumber-1.3.4 / lib / cucumber / ast / tree_walker.rb:20:in`visit_features'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/ gems / cucumber-1.3.4 / lib / cucumber / runtime.rb:48:in`run!'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3 .4 / lib / cucumber / cli / main.rb:47:在`execute!'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/ bin / cucumber:13:in`< top(required)>'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/bin/cucumber:23:in`load'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/bin/cucumber:23:in`< main>'
/Users/Brian/.rvm/gems/ruby- 2.0.0-p0 / bin / ruby_noexec_wrapper:14:in'eval'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/bin/ruby_noexec_wrapper:14:in`< main> '
features / dotfiles_repository.feature:10:in'当我将目录更改为dotfiles目录
然后一个名为.git的文件应该存在#aruba-0.5.3 / lib / aruba / cucumber .rb:264
失败的场景:
cucumber features / dotfiles_repository.feature:6#场景:创建一个dotfiles git仓库
1场景b $ b 5步(1失败,1跳过,3通过)
0m0.631s
任何人有任何解决方案或建议?不要犹豫,问你是否有问题。
提前感谢
我刚刚运行了一个类似的问题。经过长时间的调查,这一行引起了我的注意:
tmp / aruba /用户/ Brian / dotfiles不是一个目录。 (RuntimeError)
看看它是如何从'tmp / aruba'开始的?不用说,我的问题也有这个tmp / aruba /。如果您仔细查看,您会发现。
当我按照指示操作,我就可以正常工作了。
So I create the dotfiles directory and then cd
to dotfiles. However, cucumber aruba is giving me an error that says dotfiles is not a directory. I can't figure out why this is? the code in pry results in the correct behavior.
@creation
Scenario: Create a dotfiles git repository
Given the directory dotfiles does not exist in the home directory
When I successfully run `dotfiles init dotfile_one dotfile_two dotfile_three`
Then a dotfiles directory should exist in the home directory
When I change directory to the dotfiles directory ### Fails here ###
Then a file named ".git" should exist
my steps
Given /^the directory dotfiles does not exist in the home directory$/ do
step %(a directory named "#{ENV['HOME']}/dotfiles" should not exist)
end
Then /^a dotfiles directory should exist in the home directory$/ do
step %(a directory named "#{ENV['HOME']}/dotfiles" should exist)
end
When /^I change directory to the dotfiles directory$/ do
step %(I cd to "#{ENV['HOME']}/dotfiles")
end
before hook:
Before('@creation') do
FileUtils.rm_rf(File.join(ENV['HOME'], 'dotfiles'))
end
the source
module Dotfiles
class Repository
def self.init(location, dotfiles)
# create the dotfiles directory and git init
FileUtils.chdir(location) do
FileUtils.mkdir_p(File.join location, 'dotfiles')
end
FileUtils.chdir(File.join location, 'dotfiles')
end
end
end
Short version of error
When I change directory to the dotfiles directory # features/step_definitions/aruba_steps.rb:13
tmp/aruba/Users/Brian/dotfiles is not a directory. (RuntimeError)
Here is the error with full trace
@creation
Scenario: Create a dotfiles git repository # features/dotfiles_repository.feature:6
Given the directory dotfiles does not exist in the home directory # features/step_definitions/aruba_steps.rb:5
When I successfully run `dotfiles init dotfile_one dotfile_two dotfile_three` # aruba-0.5.3/lib/aruba/cucumber.rb:71
Then a dotfiles directory should exist in the home directory # features/step_definitions/aruba_steps.rb:9
When I change directory to the dotfiles directory # features/step_definitions/aruba_steps.rb:13
tmp/aruba/Users/Brian/dotfiles is not a directory. (RuntimeError)
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/aruba-0.5.3/lib/aruba/api.rb:22:in `cd'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/aruba-0.5.3/lib/aruba/cucumber.rb:52:in `block in <top (required)>'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/core_ext/instance_exec.rb:48:in `instance_exec'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/core_ext/instance_exec.rb:48:in `block in cucumber_instance_exec'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/core_ext/instance_exec.rb:69:in `cucumber_run_with_backtrace_filtering'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/core_ext/instance_exec.rb:36:in `cucumber_instance_exec'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/rb_support/rb_step_definition.rb:97:in `invoke'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/step_match.rb:25:in `invoke'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/runtime/support_code.rb:60:in `invoke'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/rb_support/rb_world.rb:52:in `step'
/Users/Brian/gems/dotfiles/features/step_definitions/aruba_steps.rb:14:in `block in <top (required)>'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/core_ext/instance_exec.rb:48:in `instance_exec'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/core_ext/instance_exec.rb:48:in `block in cucumber_instance_exec'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/core_ext/instance_exec.rb:69:in `cucumber_run_with_backtrace_filtering'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/core_ext/instance_exec.rb:36:in `cucumber_instance_exec'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/rb_support/rb_step_definition.rb:97:in `invoke'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/step_match.rb:25:in `invoke'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/ast/step_invocation.rb:60:in `invoke'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/ast/step_invocation.rb:38:in `accept'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/ast/tree_walker.rb:106:in `block in visit_step'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/ast/tree_walker.rb:170:in `broadcast'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/ast/tree_walker.rb:105:in `visit_step'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/ast/step_collection.rb:19:in `block in accept'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/ast/step_collection.rb:18:in `each'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/ast/step_collection.rb:18:in `accept'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/ast/tree_walker.rb:100:in `block in visit_steps'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/ast/tree_walker.rb:170:in `broadcast'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/ast/tree_walker.rb:99:in `visit_steps'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/ast/tree_walker.rb:15:in `block in execute'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/runtime.rb:82:in `block (2 levels) in with_hooks'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/runtime.rb:98:in `before_and_after'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/runtime.rb:81:in `block in with_hooks'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/runtime/support_code.rb:120:in `call'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/runtime/support_code.rb:120:in `block (3 levels) in around'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/language_support/language_methods.rb:9:in `block in around'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/language_support/language_methods.rb:97:in `call'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/language_support/language_methods.rb:97:in `execute_around'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/language_support/language_methods.rb:8:in `around'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/runtime/support_code.rb:119:in `block (2 levels) in around'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/runtime/support_code.rb:123:in `call'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/runtime/support_code.rb:123:in `around'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/runtime.rb:93:in `around'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/runtime.rb:80:in `with_hooks'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/ast/tree_walker.rb:13:in `execute'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/ast/scenario.rb:32:in `block in accept'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/ast/scenario.rb:79:in `with_visitor'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/ast/scenario.rb:31:in `accept'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/ast/tree_walker.rb:58:in `block in visit_feature_element'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/ast/tree_walker.rb:170:in `broadcast'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/ast/tree_walker.rb:57:in `visit_feature_element'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/ast/feature.rb:38:in `block in accept'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/ast/feature.rb:37:in `each'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/ast/feature.rb:37:in `accept'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/ast/tree_walker.rb:27:in `block in visit_feature'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/ast/tree_walker.rb:170:in `broadcast'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/ast/tree_walker.rb:26:in `visit_feature'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/ast/features.rb:28:in `block in accept'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/ast/features.rb:17:in `each'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/ast/features.rb:17:in `each'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/ast/features.rb:27:in `accept'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/ast/tree_walker.rb:21:in `block in visit_features'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/ast/tree_walker.rb:170:in `broadcast'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/ast/tree_walker.rb:20:in `visit_features'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/runtime.rb:48:in `run!'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/lib/cucumber/cli/main.rb:47:in `execute!'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/gems/cucumber-1.3.4/bin/cucumber:13:in `<top (required)>'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/bin/cucumber:23:in `load'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/bin/cucumber:23:in `<main>'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/bin/ruby_noexec_wrapper:14:in `eval'
/Users/Brian/.rvm/gems/ruby-2.0.0-p0/bin/ruby_noexec_wrapper:14:in `<main>'
features/dotfiles_repository.feature:10:in `When I change directory to the dotfiles directory'
Then a file named ".git" should exist # aruba-0.5.3/lib/aruba/cucumber.rb:264
Failing Scenarios:
cucumber features/dotfiles_repository.feature:6 # Scenario: Create a dotfiles git repository
1 scenario (1 failed)
5 steps (1 failed, 1 skipped, 3 passed)
0m0.631s
Anyone have any solutions or suggestions? Don't hesitate to ask if you have a question.Thanks in advance
I just ran with a similiar problem. After a long time of investigation this line caught my attention:
tmp/aruba/Users/Brian/dotfiles is not a directory. (RuntimeError)
See how it begins with 'tmp/aruba'? Needless to say, my problem also had this 'tmp/aruba/' on it. If you look at the readme at github closely enough you will find out that aruba has a "working directory where it performs its file operations".
When I followed the instructions there I got it working alright!
这篇关于Cucumber Aruba试图更改目录导致一个奇怪的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!