<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>tests on Sai Ram&#39;s Blog</title>
    <link>https://sairam.dev/tags/tests/</link>
    <description>Recent content in tests on Sai Ram&#39;s Blog</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <copyright>&amp;copy; 2020. All rights reserved.</copyright>
    <lastBuildDate>Tue, 11 Apr 2017 22:00:00 +0530</lastBuildDate>
    
	<atom:link href="https://sairam.dev/tags/tests/index.xml" rel="self" type="application/rss+xml" />
    
    
    <item>
      <title>Identifying Bad Tests</title>
      <link>https://sairam.dev/post/2017-04-11-identifying-bad-tests/</link>
      <pubDate>Tue, 11 Apr 2017 22:00:00 +0530</pubDate>
      
      <guid>https://sairam.dev/post/2017-04-11-identifying-bad-tests/</guid>
      <description>Look at this code Rails FactoryGirl definition for a regular user class
FactoryGirl.define do factory :user do first_name &amp;#34;John&amp;#34; last_name &amp;#34;Doe&amp;#34; subscription_end_date Date.parse(&amp;#34;2019-01-01&amp;#34;) end end Does not look harmful. This is a base model. When your other spec files start using it, everything will work fine when you evaluate the subscription_end_date with other fields, but, exactly after 2019-01-01, on 2nd Jan 2019, the tests dependent on this value will start failing.</description>
    </item>
    
  </channel>
</rss>