8
votes
2answers
3k views

RSpec vs Test::Unit in Rails

I've never been really convinced of the advantages that you get by switching over to RSpec from Test::Unit in Ruby on Rails (despite reading from time to time about RSpec). What is it about RSpec ...
4
votes
4answers
331 views

How can I get programmers to work together better on shared code with tests

We keep repeating "you have to pull first" (this is git and github by the way). Then you code a little, then get your tests to pass, then commit, then pull and push again. We give tutorial links, ...
1
vote
1answer
367 views

rails fake data, considering switch from faker to forgery, any advantages or pitfalls?

With Ruby on Rails I've usually used Forgery for generating dummy data for testing. I've noticed recently that several clients and tutorials are using Faker They both seem fairly similar in use ...
1
vote
0answers
60 views

What set of tools make up “the rails way” of testing javascript in the browser?

What's the concensus for doing in-browser (either headless or remote-controlled) testing of javascript? Unit testing my JS is nice, but can't protect against irresponsible changes to the DOM. Unit ...
0
votes
1answer
131 views

In rails, what defines unit testing as opposed to other kinds of testing [closed]

Initially I thought this was simple: unit testing for models with other testing such as integration for controller and browser testing for views. But more recently I've seen a lot of references to ...
0
votes
1answer
183 views

What should be tested or not with RSpec? [closed]

I've already talked in my previous question about testing, I feel now a little more confident about its usefulness but now I wonder if I don't do too much testing or maybe too few. My thoughts about ...