<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>R-Hack</author_name>
  <author_url>https://blog.hatena.ne.jp/R-Hack/</author_url>
  <blog_title>R-Hack（楽天グループ株式会社）</blog_title>
  <blog_url>https://commerce-engineer.rakuten.careers/</blog_url>
  <categories>
    <anon>ラクマ</anon>
    <anon>テック</anon>
  </categories>
  <description>こんにちは、冬になると首がつりやすくなるラクマの高橋です。 ラクマではRubyを主に使って開発しており、テストフレームワークはRSpecを採用しています。 RSpecの書き方について、最近躓いた３選を今回はお届けします。 検証環境 ruby: 2.6.5 rails: 6.0.3.2 rspec-rails: 3.9.0 module単体に対してテストを書きたい moduleをいろんなクラスで使用することを想定するとき、テストを特定のクラスに依存させて書くのはよくなさそうです。 そんなとき、どうすればよいか悩んだのですが、こんなふうに書くと、特定のクラスに依存せず、ｍoduleをinclude…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcommerce-engineer.rakuten.careers%2Fentry%2Ftech%2F0029&quot; title=&quot;RSpecの書き方で最近悩んだこと3つとその解決法について - R-Hack（楽天グループ株式会社）&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>https://cdn-ak.f.st-hatena.com/images/fotolife/R/Rakuma/20201211/20201211094611.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-02-23 00:00:00</published>
  <title>RSpecの書き方で最近悩んだこと3つとその解決法について</title>
  <type>rich</type>
  <url>https://commerce-engineer.rakuten.careers/entry/tech/0029</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
