rspec2
Best Way to Test Boolean Values in Rspec
Looking to开发者_如何转开发 get some opinions here. What is the best way to check boolean values with RSPEC I have seen it done a few different ways:[详细]
2023-03-28 18:13 分类:问答Rails 3.1 RC5 Mountable Engine testing with Spork
I\'ve been able to get RSpec, Cucumber, and Autotest to work against my Rails 3.1 Mountable Engine.Where things fall down is trying to integrate Spork into the mix.Spork runs fine, and my tests use Sp[详细]
2023-03-28 12:43 分类:问答Rspec2 Rails 3 Test view without including layout?
I\'ve been trying to test a number of views in my Rails 3 app, but I am getting hung up on the fact that the site\'s layout calls on AuthLogic\'s current_user, which I can never seem to set correctly[详细]
2023-03-27 23:33 分类:问答Testing with PostgreSQL in Rails 3
I am trying to switch my Rails TEST environment from SQLite3 to Postgresql. However, when I run rake spec:requests[详细]
2023-03-27 21:49 分类:问答I am having trouble testing my controller's update action using Rspec, what am I doing wrong?
I am trying to test the failing branch of the update action on my controller but I am having trouble with the test.This is 开发者_运维问答what I have and it fails on the last[详细]
2023-03-27 21:34 分类:问答What is the best practice for writing RSpec tests/examples? Write examples to test the positive/affirmative, the negative, or both?
Fairly new to BDD and RSpec, and I\'m really curious as to what people typically do when writing their RSpec tests/examples, specifically as it relates to positive and negative tests of the same thing[详细]
2023-03-27 20:47 分类:问答How to compare results of two RSpec suite runs?
I have a pretty big spec suite (watirspec), I am running it against a Ruby gem (safariwatir) and there are a lot of failures:[详细]
2023-03-27 09:45 分类:问答Factory Girl / Capybara deleting records from database mid-test?
Working with RSpec & Capybara, I\'m getting an interesting test failure mode which goes away with a few subtle rearrangements of lines in the test case...stuff that shouldn\'t matter.[详细]
2023-03-27 07:15 分类:问答Unit test for helper which changes behavior based on current path?
I\'m trying to test the following helper开发者_StackOverflow社区 method in rails: def current_has_class_link(text, path, class_name=\"selected\")[详细]
2023-03-27 05:52 分类:问答Rspec, at once deduce detail failures message
When I run rspec 开发者_运维知识库tests. I can\'t see details result of my tests. I can see FFF.FF.......[详细]
2023-03-26 08:09 分类:问答