One of our readers asked me how to scrap stock price from the MarketWatch website using Ruby. Many would say…
Read MoreTag: Rails
10 ways to speed up RSpec using Capybara and FactoryGirl
Tests are usually biggest bottleneck in any system. Here are 10 ways to speed up RSpec with Capybara #10 Avoid…
Read MoreMock file upload with RSpec 3
One more note on RSpec 3.0, this time one useful function that mocks File Upload , saves file/archive content to…
Read MoreStub (mock) File.read in RSpec 3
Recently, I have been doing whole bunch of spec rewriting from RSpec 2 to Rspec 3. As a result…
Read MoreHow to Stub IP in RSpec 3?
Often when you are writing unit tests, you want to stub your IP address. Some of the uses cases could be…
Read MoreRAILS, HAML : How to put Checkbox and label on the same line, with translations
Hey guys! Today I have decided to share with you little secret, that can save you quite some time, while…
Read More