麻烦运行rspec
trouble running rspec
我试图 运行 rspec,但出现以下错误。
/Users/xy/.rvm/rubies/ruby-1.9.3-p551/lib/ruby/gems/1.9.1/gems/bundler-1.9.4/lib/bundler.rb:317: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777
/Users/xy/.rvm/rubies/ruby-1.9.3-p551/lib/ruby/gems/1.9.1/gems/bundler-1.9.4/lib/bundler.rb:317: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777
You are using Curb 0.7.10. WebMock supports version >= 0.7.16.
DEPRECATION WARNING: ActiveSupport::Memoizable is deprecated and will be removed in future releases,simply use Ruby memoization pattern instead. (called from extend at /Users/xy/ht-webapp12/config/initializers/mysql2_column_cache.rb:3)
/Users/xy/.rvm/rubies/ruby-1.9.3-p551/lib/ruby/gems/1.9.1/gems/mysql2-0.3.11/lib/mysql2/client.rb:44:in `connect': Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) (Mysql2::Error)
有人知道怎么解决吗?
尝试:
bundle exec rspec
问题是如果你不 运行 rspec 捆绑,它将使用你最新的系统库,它可能与你在项目中捆绑的版本不同
阅读你的答案后,更新你的 Gemfile 使 curb 大于 0.7.16
,我可以在看到你的 Gemfile
和 Gemfile.lock
后给你正确的指示。
但是你应该检查 Gemfile.lock 的内容,并检查 curb
在哪里加载了哪个版本,只需检查依赖它的库并更新那些库,这将更新你的遏制,否则你可以添加遏制作为 Gemfile 与 desider 版本的要求,其他图书馆可能会比较,但你应该能够解决冲突。
如果您不想要任何这些方法,只需将 rspec 降级到适用于旧版本 curb 的早期版本。
我试图 运行 rspec,但出现以下错误。
/Users/xy/.rvm/rubies/ruby-1.9.3-p551/lib/ruby/gems/1.9.1/gems/bundler-1.9.4/lib/bundler.rb:317: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777
/Users/xy/.rvm/rubies/ruby-1.9.3-p551/lib/ruby/gems/1.9.1/gems/bundler-1.9.4/lib/bundler.rb:317: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777
You are using Curb 0.7.10. WebMock supports version >= 0.7.16.
DEPRECATION WARNING: ActiveSupport::Memoizable is deprecated and will be removed in future releases,simply use Ruby memoization pattern instead. (called from extend at /Users/xy/ht-webapp12/config/initializers/mysql2_column_cache.rb:3)
/Users/xy/.rvm/rubies/ruby-1.9.3-p551/lib/ruby/gems/1.9.1/gems/mysql2-0.3.11/lib/mysql2/client.rb:44:in `connect': Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) (Mysql2::Error)
有人知道怎么解决吗?
尝试:
bundle exec rspec
问题是如果你不 运行 rspec 捆绑,它将使用你最新的系统库,它可能与你在项目中捆绑的版本不同
阅读你的答案后,更新你的 Gemfile 使 curb 大于 0.7.16
,我可以在看到你的 Gemfile
和 Gemfile.lock
后给你正确的指示。
但是你应该检查 Gemfile.lock 的内容,并检查 curb
在哪里加载了哪个版本,只需检查依赖它的库并更新那些库,这将更新你的遏制,否则你可以添加遏制作为 Gemfile 与 desider 版本的要求,其他图书馆可能会比较,但你应该能够解决冲突。
如果您不想要任何这些方法,只需将 rspec 降级到适用于旧版本 curb 的早期版本。