小编Saw*_*ant的帖子

rails-rspec错误无法加载此类文件 - rspec/core/formatters/progress_formatter

我打破了我的rails-rspec.我切换到另一个gemset来运行第三方测试.当我返回到我的2.3.0(默认)gemset时,我有以下错误.

运行rspec得到:

/.rvm/gems/ruby-2.3.0/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `require': cannot load such file -- rspec/core/formatters/progress_formatter (LoadError)
Run Code Online (Sandbox Code Playgroud)

运行rails生成rspec:install返回:

Could not find generator 'rspec:install'. Maybe you meant 'devise:install' or ...
Run Code Online (Sandbox Code Playgroud)

我尝试卸载并重新安装,但错误仍然存​​在.

运行rspec -v返回:

- rspec-core 3.6.0
- rspec-expectations 3.6.0
- rspec-mocks 3.6.0
- rspec-rails 3.6.1
- rspec-support 3.6.0
Run Code Online (Sandbox Code Playgroud)

看来红宝石找不到rspec-core.我试过这篇文章的解决方法但没有成功.提前感谢您提供的任何见解.

运行

rails 4.2.0,ruby 2.3.0

rspec-rails ruby-on-rails-4

30
推荐指数
3
解决办法
1万
查看次数

Invoke an AWS lambda across regions

I have three lambda functions: boss, worker1, worker2. When using boto3.client.invoke I am able to call worker1 from boss. These two are in the same region.
worker2 is in a separate region. When attempting to call worker2 from boss the following error returns:
"An error occurred (ResourceNotFoundException) when calling the Invoke operation: Functions from 'us-east-1' are not reachable in this region ('us-west-2')" . boss has an execution role with the following permission:

{
"Version": "2012-10-17",
"Statement": [
    {
        "Action": [ …
Run Code Online (Sandbox Code Playgroud)

python lambda amazon-web-services amazon-iam

5
推荐指数
2
解决办法
5675
查看次数