rspec
Is there a way to generate the documentation for an RSpec test without actually running the test?
For each test in each spec file in a given directory, I would like to generate the output of rspec spec --format documentation, so it looks something like this:[详细]
2023-04-12 08:03 分类:问答Sample Rails apps with rspec coverage
I need to see examples of rspec used in a live Rails project. Please suggest some open source Rails apps which has good rspec coverage a开发者_如何学运维nd can can act as a good example to study Rspec[详细]
2023-04-12 04:49 分类:问答Undefined method `reflect_on_association` using Mongoid, Rspec
I\'m learning me some Rails! But right now, I can\'t seem to get past an error RSpec is throwing. The error is as follows:[详细]
2023-04-12 03:47 分类:问答SQLite constraint exception on empty table when running rspec
I\'m having a weird problem with my Rspec test suite. All tests that insert data into a table that has a unique constraint fail. Running the failing tests individually by specifying the line number wo[详细]
2023-04-12 02:33 分类:问答Sinatra + Rack::Test + Rspec2 - Using Sessions?
It\'s the first time I\'m working with Sinatra and I just can\'t get sessions to work in my tests. I have enable :sessions in my app.[详细]
2023-04-11 20:02 分类:问答How to write rspec for blank field? [Rails3.1]
I use rails 3.1 + rspec and factory girl. My validation of required field (validates_presence_of) is working.[详细]
2023-04-11 18:46 分类:问答Testing Array membership in rspec
I\'d like to test whether or not an array contains a given object. I suppose I co开发者_StackOverflowuld accomplish this with[详细]
2023-04-11 17:46 分类:问答Rspec: Result matched using == but still gives "Failed" test result
Good day! I\'m practising materials from \"Ruby on Rails Tutorial\" by Michael Hartle. Below is the failure message I received, even though the \"expected\" and \"got\" seems to match. Would you pleas[详细]
2023-04-11 17:38 分类:问答How can I use RSpec to test the response code on a CanCan failed authorization?
I\'m working on a rails project in which I use CanCan to authorize my resources. When a user is not signed in and tries to submit a \"talk\" (via an ajax form submission), CanCan correctly raises a 40[详细]
2023-04-11 13:27 分类:问答Rails 3.1: testing "DELETE 'destroy'" in controller and route specs
I\'m testing an app that uses Sorcery for authentication. I have a sessions controller which handles user signin / signout with tests to go along with the actions. I understand that a destroy action u[详细]
2023-04-11 13:03 分类:问答