※間違いなどございましたらご指摘いただけると幸いです ※随時更新予定 概要 以下、https://semaphoreci.com/community/tutorials/getting-started-with-rspec より引用 RSpec is a testing tool for Ruby, created for behavior-driven development (BDD). It is the most frequently used testing library for Ruby in production applications. 「RSpec は、ビヘイビア駆動開発 (BDD) 用に作成された Ruby のテスト ツールです。本番アプリケーションで最も頻繁に使用される Ruby のテスト ライブラリです。」(Google翻訳) RSpecはRailsアプリケーシ
This Minitest style guide outlines the recommended best practices for real-world programmers to write code that can be maintained by other real-world programmers. RuboCop, a static code analyzer (linter) and formatter, has a rubocop-minitest extension, provides a way to enforce the rules outlined in this guide.
One of the reasons I prefer testing with Minitest is the dissatisfaction with my everyday RSpec work. Here are things I don’t like about typical RSpec test suites and how to fix them. Please take the post with a grain of salt. If you enjoy writing RSpec this way, keep enjoying it! Some things are personal, and it’s okay. Shared examples I think the shared examples feature deserves the first spot.
はじめに こんにちは!先日Railsチュートリアルを完走したばかりの初心者です。 私はRalisチュートリアルを開始する際にRSpecを使用すべきか悩みました。 本記事では私が当時知りたかったRSpecについての情報をまとめております。 導入を検討されている方のお役に立てればと思います。 ※本記事ではRSpecの導入方法については記載しておりません。 導入方法をお探しの方は以下の記事が参考になるかと思います。 ○RailsアプリへのRspecとFactory_botの導入手順 RSpecとは RSpecとは、RubyでBDD (ビヘイビア駆動開発) を実施するためのテストフレームワークです。 プログラムのふるまいを記述するためのドメイン特化言語(DSL)を提供します。 簡単に言うとRSpecは「プログラムのふるまいをコードで記述して、正しく動作しているか確認するテストフレームワーク」です。
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く