English 中文(简体)
在与Spree 1.1.0进行`rake 测试'时,系统无法找到具体的道路。
原标题: system cannot find the path specified when running `rake test_app` with Spree 1.1.0

I m on Railways 3.2 and Spree 1.1. 操作最初的<代码>rake 测试_app -trace 我收到了:

** Invoke test_app (first_time)
** Execute test_app
** Invoke common:test_app (first_time)
** Execute common:test_app
Generating dummy Rails application...
Setting up dummy database...
The system cannot find the path specified.

http://www.un.org/Depts/DGACM/index_french.htm 只要我能够从<条码>中抽取分校准仪表象仪表态。 Spree正在寻找dbspree_test.sqlite3。 我尝试人工创建这一行文,但没有uck。

而且,视窗7上的Im,如果这有帮助,它可能是一种某种环境。

问题回答

It seems like a small bug in Spree generator:

puts "Setting up dummy database..."
cmd = "bundle exec rake db:drop db:create db:migrate db:test:prepare"

if RUBY_PLATFORM =~ /mswin/ #windows
  cmd += " >nul"
else
  cmd += " >/dev/null"
end

system(cmd)

在我的案件中,RUBY_PLATFORM是“i386-mingw32”,而其他障碍则增加了“和”;/dev/null”,而后者是气球的有效沉默者,但却造成窗户中的错误。

很容易确定:

if RUBY_PLATFORM =~ /mswin|mingw/

如我从https://stackoverflow.com/questions/170956/how-can-i-find- which-operation-system-my-ruby-program-is-running-on>here,here

《劳动法》采用预判法。 esting_supportcommon_rake.rb

否则,你就只能运行:

bundle exec rake db:drop db:create db:migrate db:test:prepare




相关问题
Authenticating against a remote service using Authlogic

I need to allow users to login to spree using a non-standard authentication service. Users in my community all have accounts on another 3d party service set up for us. That service provides a web-...

Find all Products by Tag in Rails with ActiveRecord

This is probably something very simple but I m looking for the optimal way of retrieving all Products by Tag, so to speak. This is with Spree, so I should stick to the way they have modeled their ...

can t activate rack problem while install spree commerce

I install spree version 0.9.4 with gem install spree and run a set up command spree mystore and get this errors messages. Have anybody experienced this whether in spree or not ? D:Workspaces>...

Spree how to use Hooks

According to http://spreecommerce.com/documentation/theming.html#hooks you should be able to use spree hooks using my_theme_hooks.rb but how? Do I need to extend a class and where can I check which ...

<li> only visible when parent has css class="current"

I have a list of categories called Taxons: The Rails code is here: <div id="taxonomies" class="sidebar-item"> <% @taxonomies.each do |taxonomy| %> <ul class="navigation-list"> ...

ECommerce solution in php and ror [closed]

I m a developer but I never used php nor ruby on rails. I would like to create a small e-commerce website. I found out 2 solutions that seems very good, Prestahop and Spree. Which one would you ...

热门标签