<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tbpg</author_name>
  <author_url>https://blog.hatena.ne.jp/tbpg/</author_url>
  <blog_title>Tbpgr Blog</blog_title>
  <blog_url>https://tbpgr.hatenablog.com/</blog_url>
  <categories>
    <anon>RSpec</anon>
  </categories>
  <description>概要 rspec hook | before/after 詳細 rspecのhookについて。 before/afterフックは各exampleの処理前後に処理を追加することができます。 引数に「:each」「:all」のどちらかを指定することで1回だけ実行するか、 各exampleごとに実行するか設定できます。また、RSpec.configureのbefore/afterフックを設定することで テストケース全体に対する前処理・後処理を設定できます。下記に設定サンプルを例示します。 構成 $ tree ┣ lib ｜ ┗ hoge.rb ┗ spec ┣ hoge_spec.rb ┗ spec…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftbpgr.hatenablog.com%2Fentry%2F20140422%2F1398170963&quot; title=&quot;RSpec | rspec hook | before/after - Tbpgr Blog&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>2014-04-22 21:49:23</published>
  <title>RSpec | rspec hook | before/after</title>
  <type>rich</type>
  <url>https://tbpgr.hatenablog.com/entry/20140422/1398170963</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
