<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sinsoku</author_name>
  <author_url>https://blog.hatena.ne.jp/sinsoku/</author_url>
  <blog_title>アジャイルSEの憂鬱</blog_title>
  <blog_url>https://sinsoku.hatenablog.com/</blog_url>
  <categories>
    <anon>ruby</anon>
    <anon>rspec</anon>
    <anon>rails</anon>
  </categories>
  <description>ActiveRecord::Callbacks は便利なのですが、テストでモデルを作るたびにメール送信の処理が動いたり、別モデルが生成されると困る。 このあたりをthoughtbot/factory_girlを使って綺麗に書く方法を紹介します。 コード FactoryGirl.define do factory :user do name 'name' transient do stub_methods [] end after :build do |user, evaluator| evaluator.stub_methods.each do |method_name| RSpec::Moc…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsinsoku.hatenablog.com%2Fentry%2F2016%2F01%2F05%2F090000&quot; title=&quot;ActiveRecord::Callbacks をfactory_girlで綺麗にstubする方法 - アジャイルSEの憂鬱&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-01-05 09:00:00</published>
  <title>ActiveRecord::Callbacks をfactory_girlで綺麗にstubする方法</title>
  <type>rich</type>
  <url>https://sinsoku.hatenablog.com/entry/2016/01/05/090000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
