{"id":1487,"date":"2022-04-21T18:03:12","date_gmt":"2022-04-21T09:03:12","guid":{"rendered":"https:\/\/www.miracleave.co.jp\/contents\/?p=1487"},"modified":"2023-05-23T10:00:15","modified_gmt":"2023-05-23T01:00:15","slug":"rspec-shoulda-matchers","status":"publish","type":"post","link":"https:\/\/www.miracleave.co.jp\/contents\/1487\/rspec-shoulda-matchers\/","title":{"rendered":"RSpec\u3092Shoulda Matchers\u3092\u4f7f\u3063\u3066\u3081\u3061\u3083\u7c21\u5358\u306b\u66f8\u304f"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u306f\u3058\u3081\u306b<\/h2>\n\n\n\n<p>\u3053\u3093\u306b\u3061\u306f\uff01\u5148\u65e5mira meet\uff08\u5f0a\u793e\u306e\u30df\u30fc\u30c8\u30a2\u30c3\u30d7\uff09\u3067\u767a\u8868\u3055\u305b\u3066\u3044\u305f\u3060\u3044\u305fRSpec\u306eShoulda Matchers\u304c\u3081\u3061\u3083\u304f\u3061\u3083\u4fbf\u5229\u306a\u306e\u3067\u3053\u3061\u3089\u3067\u3082\u3054\u7d39\u4ecb\u3055\u305b\u3066\u3044\u305f\u3060\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Shoulda Matchers\u3068\u306f<\/h2>\n\n\n\n<p>Shoulda Matchers\u3068\u306fRSpec\u5185\u3067\u4f7f\u7528\u3067\u304d\u308b\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u3001\u8907\u96d1\u306a\u30c6\u30b9\u30c8\u3092\u30ef\u30f3\u30e9\u30a4\u30ca\u30fc\u3067\u66f8\u304f\u3053\u3068\u304c\u3067\u304d\u308b\u30de\u30c3\u30c1\u30e3\u306e\u3053\u3068\u3067\u3059\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/github.com\/thoughtbot\/shoulda-matchers\">Shoulda Matchers\u306eGitHub<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u901a\u5e38\u306e\u30c6\u30b9\u30c8\u306e\u5834\u5408<\/h2>\n\n\n\n<p>\u4f8b\u3048\u3070\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306aUser\u30e2\u30c7\u30eb\u304c\u3042\u308b\u3068\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"325\" height=\"283\" src=\"https:\/\/www.miracleave.co.jp\/contents\/wp-content\/uploads\/2022\/04\/image-1.png\" alt=\"\" class=\"wp-image-1490\" srcset=\"https:\/\/www.miracleave.co.jp\/contents\/wp-content\/uploads\/2022\/04\/image-1.png 325w, https:\/\/www.miracleave.co.jp\/contents\/wp-content\/uploads\/2022\/04\/image-1-300x261.png 300w\" sizes=\"(max-width: 325px) 100vw, 325px\" \/><\/figure>\n\n\n\n<p>\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u30c6\u30b9\u30c8\u3092\u3059\u308b\u5834\u5408\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306a\u89b3\u70b9\u304c\u5fc5\u8981\u3060\u3068\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"> \u30fb name\u304cnil\u306e\u5834\u5408\u3001\u7121\u52b9\u3067\u3042\u308b\u3053\u3068\n \u30fb name\u304c\u7a7a\u6587\u5b57\u306e\u5834\u5408\u3001\u7121\u52b9\u3067\u3042\u308b\u3053\u3068\n \u30fb name\u304c\u65e2\u306b\u4fdd\u5b58\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u3001\u7121\u52b9\u3067\u3042\u308b\u3053\u3068\n \u30fb name\u304c10\u6587\u5b57\u4ee5\u5185\u306e\u5834\u5408\u3001\u6709\u52b9\u3067\u3042\u308b\u3053\u3068\n \u30fb name\u304c11\u6587\u5b57\u4ee5\u4e0a\u306e\u5834\u5408\u3001\u7121\u52b9\u3067\u3042\u308b\u3053\u3068\n \u30fb email\u304cnil\u306e\u5834\u5408\u3001\u7121\u52b9\u3067\u3042\u308b\u3053\u3068\n \u30fb email\u304c\u7a7a\u6587\u5b57\u306e\u5834\u5408\u3001\u7121\u52b9\u3067\u3042\u308b\u3053\u3068\n \u30fb email\u304c\u65e2\u306b\u4fdd\u5b58\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u3001\u7121\u52b9\u3067\u3042\u308b\u3053\u3068\n \u30fb email\u304cemail\u306e\u5f62\u5f0f\u3067\u306f\u306a\u3044\u5834\u5408\u3001\u7121\u52b9\u306a\u72b6\u614b\u3067\u3042\u308b\u3053\u3068\n \u30fb email\u306f\u5168\u89d2\u6587\u5b57\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u3001\u7121\u52b9\u306a\u72b6\u614b\u3067\u3042\u308b\u3053\u3068\n \u30fb password\u304cnil\u306e\u5834\u5408\u3001\u7121\u52b9\u3067\u3042\u308b\u3053\u3068\n \u30fb password\u304c\u7a7a\u6587\u5b57\u306e\u5834\u5408\u3001\u7121\u52b9\u3067\u3042\u308b\u3053\u3068\n \u30fb password\u304c5\u6587\u5b57\u4ee5\u5185\u306e\u5834\u5408\u3001\u7121\u52b9\u3067\u3042\u308b\u3053\u3068\n \u30fb password\u304c6\u6587\u5b57\u4ee5\u4e0a\u306e\u5834\u5408\u3001\u6709\u52b9\u3067\u3042\u308b\u3053\u3068\n \u30fb password\u304c128\u6587\u5b57\u4ee5\u5185\u306e\u5834\u5408\u3001\u6709\u52b9\u3067\u3042\u308b\u3053\u3068\n \u30fb password\u304c129\u6587\u5b57\u4ee5\u4e0a\u306e\u5834\u5408\u3001\u7121\u52b9\u3067\u3042\u308b\u3053\u3068\n \u30fb password_confirmation\u304cnil\u306e\u5834\u5408\u3001\u7121\u52b9\u3067\u3042\u308b\u3053\u3068\n \u30fb password_confirmation\u304c\u7a7a\u6587\u5b57\u306e\u5834\u5408\u3001\u7121\u52b9\u3067\u3042\u308b\u3053\u3068\n \u30fb password\u3068password_confirmation\u304c\u4e0d\u4e00\u81f4\u306e\u5834\u5408\u3001\u7121\u52b9\u3067\u3042\u308b\u3053\u3068<\/pre>\n\n\n\n<p>\u3053\u306e\u6642\u70b9\u3067\u81a8\u5927\u3067\u3059\u304c\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u5927\u304d\u304f\u306a\u308c\u3070\u306a\u308b\u307b\u3069\u5fc5\u8981\u306a\u89b3\u70b9\u306f\u591a\u304f\u306a\u308a\u307e\u3059\u3002\u3053\u308c\u3092\u30c6\u30b9\u30c8\u306b\u8d77\u3053\u3059\u3068\u306a\u308b\u3068\u975e\u5e38\u306b\u5927\u5909\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3067\u306f\u3001\u901a\u5e38\u901a\u308aRSpec\u3092\u4f7f\u7528\u3057\u3066\u30c6\u30b9\u30c8\u3092\u66f8\u3044\u3066\u307f\u307e\u3057\u3087\u3046\u3002name\u3092\u4f8b\u306b\u66f8\u3044\u3066\u307f\u308b\u3068\u4e0b\u8a18\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<br><\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-ruby\" data-lang=\"Ruby\"><code>require &#39;rails_helper&#39;\n\nRSpec.describe User, type: :model do\n  describe &#39;name&#39; do\n    before do\n      @user = User.new(\n        name: &quot;Tanaka&quot;,\n        email: &#39;tester@example.com&#39;,\n        password: &#39;p@ssword!!&#39;,\n        password_confirmation: &#39;p@ssword!!&#39;,\n      )\n    end\n\n    it &#39;nil\u306e\u5834\u5408\u3001\u7121\u52b9\u3067\u3042\u308b\u3053\u3068&#39; do\n      @user.name = nil\n      @user.valid?\n      expect(@user.errors[:name]).to include(&quot;can&#39;t be blank&quot;)\n    end\n\n    it &#39;\u7a7a\u6587\u5b57\u306e\u5834\u5408\u3001\u7121\u52b9\u3067\u3042\u308b\u3053\u3068&#39; do\n      @user.name = &quot;&quot;\n      @user.valid?\n      expect(@user.errors[:name]).to include(&quot;can&#39;t be blank&quot;)\n    end\n\n    it &#39;\u3059\u3067\u306b\u4f7f\u7528\u3055\u308c\u3066\u3044\u308bname\u306e\u5834\u5408\u3001\u4fdd\u5b58\u3067\u304d\u306a\u3044\u3053\u3068&#39; do\n      User.create(\n        name: &#39;Takashi&#39;,\n        email: &#39;tester_1@example.com&#39;,\n        password: &#39;p@ssword!!&#39;,\n        password_confirmation: &#39;p@ssword!!&#39;,\n      )\n\n      @user.name = &#39;Takashi&#39;\n      @user.valid?\n      expect(@user.errors[:name]).to include(&quot;has already been taken&quot;)\n    end\n\n    it &#39;10\u6587\u5b57\u4ee5\u5185\u306e\u5834\u5408\u3001\u6709\u52b9\u3067\u3042\u308b\u3053\u3068&#39; do\n      @user.name = &#39;TakashiKai&#39;\n      expect(@user).to be_valid\n    end\n\n    it &#39;11\u6587\u5b57\u4ee5\u4e0a\u306e\u5834\u5408\u3001\u7121\u52b9\u3067\u3042\u308b\u3053\u3068&#39; do\n      @user.name = &#39;TakashiKaii&#39;\n      @user.valid?\n      expect(@user.errors[:name]).to include(&quot;is too long (maximum is 10 characters)&quot;)\n    end\n  end\nend<\/code><\/pre><\/div>\n\n\n\n<p>\u5c11\u3057\u5197\u9577\u3067\u3059\u306d\u3002\u7279\u306bname\u306e\u5024\u304c\u306a\u3044\u5834\u5408\u306e\u30c6\u30b9\u30c8\u3067\u306f\u3001\u7a7a\u6587\u5b57\u3001null\u3069\u3061\u3089\u3082\u30c6\u30b9\u30c8\u304c\u5fc5\u8981\u3067\u3059\u3057\u3001\u6587\u5b57\u6570\u3082\u5883\u754c\u7dda\u306b\u306a\u308b10\u6587\u5b57\u306811\u6587\u5b57\u3067\u30c6\u30b9\u30c8\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u306e\u304c\u8f9b\u3044\u3068\u3053\u308d\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Shoulda Matchers\u3092\u4f7f\u7528\u3057\u305f\u30c6\u30b9\u30c8\u306e\u5834\u5408<\/h2>\n\n\n\n<p>\u3067\u306fShoulda Matchers\u3092\u4f7f\u7528\u3057\u3066\u30c6\u30b9\u30c8\u3092\u5b9f\u88c5\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<br><\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-ruby\" data-lang=\"Ruby\"><code>require &#39;rails_helper&#39;\n\nRSpec.describe User, type: :model do\n  describe &#39;name&#39; do\n    it { is_expected.to validate_presence_of :name }\n    it { is_expected.to validate_uniqueness_of :name }\n    it { is_expected.to validate_length_of(:name).is_at_most(10) }\n  end\nend<\/code><\/pre><\/div>\n\n\n\n<p><strong>!?<\/strong><\/p>\n\n\n\n<p>\u306a\u3093\u3068\u5b9f\u969b\u306e\u30c6\u30b9\u30c8\u5b9f\u884c\u90e8\u5206\u304c3\u884c\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\uff01<\/p>\n\n\n\n<p>\u30fb name\u304cnil\u306e\u5834\u5408\u3001\u7121\u52b9\u3067\u3042\u308b\u3053\u3068  <br>\u30fb name\u304c\u7a7a\u6587\u5b57\u306e\u5834\u5408\u3001\u7121\u52b9\u3067\u3042\u308b\u3053\u3068  <\/p>\n\n\n\n<p>\u3053\u3061\u3089\u306e\u89b3\u70b9\u306f <code>it { is_expected.to validate_presence_of :name }<\/code>\u3068\u3044\u3046\u4e00\u6587\u3067\u30c6\u30b9\u30c8\u304c\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3082\u3057\u308f\u304b\u308a\u3065\u3089\u3051\u308c\u3070\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306b\u66f8\u304d\u63db\u3048\u3066\u5b9f\u884c\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-ruby\" data-lang=\"Ruby\"><code>require &#39;rails_helper&#39;\n\nRSpec.describe User, type: :model do\n  describe &#39;name&#39; do\n    user = User.new(\n      name:  &quot;&quot;,              # \u307e\u305f\u306fname: nil\n      email: &#39;tester@example.com&#39;,\n      password: &#39;p@ssword!!&#39;,\n      password_confirmation: &#39;p@ssword!!&#39;,\n    )\n    it { expect(user).to validate_presence_of :name }\n  end\nend<\/code><\/pre><\/div>\n\n\n\n<p>user\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306ename\u306e\u5024\u3092\u7a7a\u6587\u5b57\u306b\u3057\u3066\u3082nil\u306b\u3057\u3066\u3082\u30c6\u30b9\u30c8\u304c\u901a\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p><br>\u30fb name\u304c\u65e2\u306b\u4fdd\u5b58\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u3001\u7121\u52b9\u3067\u3042\u308b\u3053\u3068  <\/p>\n\n\n\n<p>\u3053\u3061\u3089\u306e\u89b3\u70b9\u306f <code>it { is_expected.to validate_uniqueness_of :name }<\/code>\u306e\u4e00\u6587\u3067\u30c6\u30b9\u30c8\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30fb name\u304c10\u6587\u5b57\u4ee5\u5185\u306e\u5834\u5408\u3001\u6709\u52b9\u3067\u3042\u308b\u3053\u3068<br>\u30fb name\u304c11\u6587\u5b57\u4ee5\u4e0a\u306e\u5834\u5408\u3001\u7121\u52b9\u3067\u3042\u308b\u3053\u3068<\/p>\n\n\n\n<p>\u3053\u3061\u3089\u306e\u89b3\u70b9\u306f<code>it { is_expected.to validate_length_of(:name).is_at_most(10) }<\/code>\u306e\u4e00\u6587\u3067\u30c6\u30b9\u30c8\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u3061\u3089\u306e10\u3068\u3044\u3046\u6570\u5b57\u30929\u308411\u306b\u3057\u3066\u30c6\u30b9\u30c8\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002\u4f8b\u3048\u30709\u306b\u3057\u305f\u6642\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u304c\u51fa\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-ruby\" data-lang=\"Ruby\"><code>Failures:\n\n  1) User name is expected to validate that the length of :name is at most 9\n     Failure\/Error: it { is_expected.to validate_length_of(:name).is_at_most(9) }\n     \n       Expected User to validate that the length of :name is at most 9, but\n       this could not be proved.\n         After setting :name to \u2039&quot;xxxxxxxxxx&quot;\u203a, the matcher expected the\n         User to be invalid, but it was valid instead.\n     # .\/spec\/models\/user_spec.rb:5:in `block (3 levels) in &lt;top (required)&gt;&#39;\n\nFinished in 0.47804 seconds (files took 3.31 seconds to load)\n1 example, 1 failure<\/code><\/pre><\/div>\n\n\n\n<p>9\u6587\u5b57\u304c\u6700\u5927\u3060\u304b\u3089<code>\u2039\"xxxxxxxxxx\"\u203a<\/code>\u306e\u3088\u3046\u306b10\u6587\u5b57\u3067\u4fdd\u5b58\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u7121\u52b9\u306b\u306a\u308b\u3053\u3068\u3092\u671f\u5f85\u3057\u305f\u304c\u3001\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u308b\u3068\u306e\u3053\u3068\u3067\u3059\u3002\u3064\u307e\u308a\u30019\u6587\u5b57\u306a\u3089\u6709\u52b9\u3001\u3060\u3051\u3067\u306a\u304f10\u6587\u5b57\u306a\u3089\u7121\u52b9\u3068\u3044\u3046\u30c6\u30b9\u30c8\u3082\u884c\u3063\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u3088\u3046\u306bShoulda Matchers\u3092\u4f7f\u7528\u3059\u308b\u3068\u975e\u5e38\u306b\u7c21\u5358\u306b\u7c21\u6f54\u306b\u30c6\u30b9\u30c8\u3092\u8a18\u8ff0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u307e\u305f\u3001\u4eca\u56de\u306f\u30e2\u30c7\u30eb\u3092\u4f8b\u306b\u3054\u7d39\u4ecb\u3057\u307e\u3057\u305f\u304c\u3001ActiveRecord\u3084Controller\u3001Routing\u3067\u3082\u4f7f\u7528\u3067\u304d\u308b\u30de\u30c3\u30c1\u30e3\u304c\u63c3\u3063\u3066\u3044\u307e\u3059\u3002\u8208\u5473\u304c\u3042\u308b\u65b9\u306f\u305c\u3072GitHub\u3092\u8997\u3044\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u307e\u3068\u3081<\/h2>\n\n\n\n<p>\u4eca\u56de\u306fShoulda Matchers\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002\u30c6\u30b9\u30c8\u306f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u5927\u304d\u304f\u306a\u308c\u3070\u306a\u308b\u307b\u3069\u7ba1\u7406\u304c\u96e3\u3057\u304f\u3001\u5197\u9577\u306b\u306a\u308a\u3084\u3059\u3044\u50be\u5411\u304c\u3042\u308a\u307e\u3059\u3002\u3057\u304b\u3057\u3001\u3053\u306e\u30de\u30c3\u30c1\u30e3\u3092\u4f7f\u7528\u3059\u308c\u3070\u3001\u7c21\u7d20\u306b\u66f8\u304f\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3057\u3001\u30a8\u30e9\u30fc\u5185\u5bb9\u3082\u308f\u304b\u308a\u3084\u3059\u3044\u306a\u3069\u306e\u30e1\u30ea\u30c3\u30c8\u3082\u3042\u308b\u305f\u3081\u3001\u305c\u3072\u5229\u7528\u3092\u304a\u52e7\u3081\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3067\u306f\uff01\u3088\u3044\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u30e9\u30a4\u30d5\u3092\uff01\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u306b \u3053\u3093\u306b\u3061\u306f\uff01\u5148\u65e5mira meet\uff08\u5f0a\u793e\u306e\u30df\u30fc\u30c8\u30a2\u30c3\u30d7\uff09\u3067\u767a\u8868\u3055\u305b\u3066\u3044\u305f\u3060\u3044\u305fRSpec\u306eShoulda Matchers\u304c\u3081\u3061\u3083\u304f\u3061\u3083\u4fbf\u5229\u306a\u306e\u3067\u3053\u3061\u3089\u3067\u3082\u3054\u7d39\u4ecb\u3055\u305b\u3066\u3044\u305f\u3060\u304d\u307e\u3059\u3002 Shoulda Match [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1498,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"swell_btn_cv_data":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[95,94,72],"class_list":["post-1487","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tech","tag-rspec","tag-ruby","tag-ruby-on-rails"],"jetpack_featured_media_url":"https:\/\/www.miracleave.co.jp\/contents\/wp-content\/uploads\/2022\/04\/file_type_rspec_icon_130188.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.miracleave.co.jp\/contents\/wp-json\/wp\/v2\/posts\/1487","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.miracleave.co.jp\/contents\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.miracleave.co.jp\/contents\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.miracleave.co.jp\/contents\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.miracleave.co.jp\/contents\/wp-json\/wp\/v2\/comments?post=1487"}],"version-history":[{"count":8,"href":"https:\/\/www.miracleave.co.jp\/contents\/wp-json\/wp\/v2\/posts\/1487\/revisions"}],"predecessor-version":[{"id":2370,"href":"https:\/\/www.miracleave.co.jp\/contents\/wp-json\/wp\/v2\/posts\/1487\/revisions\/2370"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.miracleave.co.jp\/contents\/wp-json\/wp\/v2\/media\/1498"}],"wp:attachment":[{"href":"https:\/\/www.miracleave.co.jp\/contents\/wp-json\/wp\/v2\/media?parent=1487"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.miracleave.co.jp\/contents\/wp-json\/wp\/v2\/categories?post=1487"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.miracleave.co.jp\/contents\/wp-json\/wp\/v2\/tags?post=1487"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}