What Are the Outcomes In Mocking Third-Party APIs

Everyone uses third party APIs in their project. These are the external services which allows you to access third party functionalities within the project without rebuilding them. While writing test cases for any project it is very difficult to be sure that the test suites always run successfully as it is dependent on the third … Continue reading What Are the Outcomes In Mocking Third-Party APIs

When I travelled halfway across the world to attend RubyConf 14 San Diego

It would be folly to even try and sum up all my experiences in one blog post. Hence this part is a short recap of my impressions of RubyConf San Diego. After a long journey of ~12000kms, little sleep, lots of coffee, and several moments of uncertainty ; I finally arrived at San Diego Convention … Continue reading When I travelled halfway across the world to attend RubyConf 14 San Diego

Handy Gems That Enhance Minitest-Rails

Minitest, as the name suggest, does not include a lot of features automatically provided in rspec. Here is a list of gems that you can use to enhance minitest-rails.

rails learning

Welcome to ‘minitest’ world! Minitest is yet another ruby testing framework but it’s not a replacement to rspec. In rspec you can readily use things like ‘subject’, ‘metadata’ etc. However, minitest, as the name suggests, is a light-weight testing framework and does not include a lot of these features automatically. Here is a list of gems that you can use to enhance minitest-rails.

1. m

m is a test runner similar to rspec command in rspec framework. Using this we can run single test using line numbers too. Users who don’t like this gem can also run tests using default rake tasks provided by minitest.

2. minitest-metadata

metadata is one of the cool features in rspec. Using this we can tag scenarios across files. Unfortunately minitest doesn’t support this feature by default. We have to include a separate gem called minitest-metadata. We can implement rspec conditional hooks functionality through this…

View original post 198 more words