rspec3 相关问题

RSpec 3是Ruby程序员行为驱动开发工具的主要版本。仅将此标记用于RSpec 3特定问题,并将[rspec]添加到这些问题中。

将RestClient模拟为mixin

我有一个使用RestClient的mixin:模块Restable def get(url,options = {})response = RestClient :: Request.new(:method =>:get,:url => url,:user => ...

回答 1 投票 0

找不到现有的路线

我有这个路由获取'versions'=>'main#versions',格式:[:xml]在我的MainController中,我有一个动作版本:class MainController <ApplicationController ... def versions ...

回答 1 投票 0

检查页面500和404的测试用例

我试图传递404和500页的测试用例。但是我遇到了很多问题1)首先我在app / views / errors /中有一个页面500.html.erb,它没有被调用。 2)如果我跑......

回答 1 投票 3

集成测试ActionMailer和ActiveJob

在过去,Rails 3,我已经将动作邮件测试与我的Cucumber / Rspec-Capybara测试集成,如下例所示。使用Rails 4,使用以下似乎不起作用。我能看到......

回答 1 投票 0

© www.soinside.com 2019 - 2024. All rights reserved.