2
votes
4answers
208 views

Test Doubles, Mocks and Stubs - when not to use & why, for Ruby, Rspec

I've learned about mocking and stubbing and I've seen how they can help me create great test suites that run blindingly fast and thus speed up my development process hugely. However I've also seen ...
2
votes
1answer
260 views

How do I test this?

I've attempted test first in Ruby on Rails using Test Unit and RSpec. I'm wondering how to do test first in situations that are more closely tied to the OS/filesystem. Problem: Building a USB stick ...
-2
votes
2answers
177 views

What is the general concept name for mocks and stubs? - RSpec [closed]

Is there a common concept name for mocks and stubs? What word should I use when speaking over both of them?
0
votes
0answers
103 views

How do I test my non-Ruby website using Ruby?

I would like to build some Ruby tests to test my non-Ruby website. I love the Ruby testing tools (webrat, capybara, etc.) but they seem to be targeted to testing local sites. How can I use these ...
0
votes
1answer
160 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 ...
1
vote
1answer
562 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 ...