æ¦è¦ åèè ã®è¨±è«¾ãå¾ã¦ç¿»è¨³ã»å ¬éãããã¾ãã è±èªè¨äº: Embracing composability: be_json RSpec matcher åæå ¬éæ¥: 2018/03/02 èè : zverok -- åãµã¤ããrubyreferences.github.ioãã®ä½è ã§ãããã¾ãã ãªãã¸ããª: zverok/saharspec RSpec: ã³ã³ãã¸ã·ã§ã³ã§ããbe_jsonãããã£ã¼ï¼ç¿»è¨³ï¼ HTTP APIãRSpecã§ãã¹ãããã®ã¯ãç°¡åãªããã§ã¨ãã«ã¯ããªããã¼ã«ãªããã¨ãããã¾ããã¬ã¹ãã³ã¹ã®JSONãRubyãããæ£ããããæ¹ã§ãã¹ãããã«ã¯ã©ãããã°ããã§ããããï¼ãããã誰ããæåã¯ä»¥ä¸ã®ããã«æ¸ãã§ãããã let(:response) { call_my_api } subject { JSON.parse(response.body) } it {
{{#tags}}- {{label}}
{{/tags}}