That’s me :)
Visit http://www.anatolyspektor.com to find out more about me !
Get My Book
- Fun stuff
- IT News
- My Work
- Programming Languages
Error: Twitter did not respond. Please wait a few minutes and refresh this page.
Tag Archives: Rspec
#10 Avoid writing to the database Lets take simple example. I have this test: I am testing if Address is valid by passing a Factory with dummy data. When I run this test in console I get this: 0.022777 For … Continue reading
Hey guys! Happy New Year! I am glad to be back this year with some interesting news. Thank you for blasting my mailbox with your questions and suggestions! I will do my best to answer all of them as soon … Continue reading
One more note on RSpec 3.0, this time one useful function that mocks File Upload , saves file/archive content to memory so after it you can do whatever your soul wants with it. Test file/archive should exist in the file … Continue reading
Often when you are writing unit tests, you want to mock your IP address. Some of the uses cases could be – you are checking if IP is within the certain range. For RSpec 2.x mocking IP would look like … Continue reading