1
vote
1answer
122 views

Rspec Request break when teammate pushes some changes

This is my rspec integration test for user, it always breaks when my teammate change something, how do i improve this? ...
16
votes
4answers
8k views

How to effectively unit test a controller in Ruby on Rails?

I intend this to be a general question on writing an effective set of test cases for a controller action. I include the following ingredients: Ruby on Rails RSpec: A testing framework. I considered ...
3
votes
2answers
131 views

My first model RSpec

This is my first model RSpec test: ...
1
vote
1answer
225 views

How to refactor my controller specs?

In my project (https://github.com/GCorbel/comment-my-projects) I have this kind of code to test my controllers. ...