サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
iPhone 16
rspec.info
Take very small stepsDon’t rush ahead with more code. Instead, add another example and let it guide you to what you have to do next. And don’t forget to take time to refactor your code before it gets messy. You should keep your code clean at every step of the way. View Documentation The BookEffective Testing with RSpec 3: Build Ruby Apps with ConfidenceThis definitive guide from RSpec’s lead devel
RSpec 3.8 has just been released! Given our commitment to semantic versioning, this should be an easy upgrade for anyone already using RSpec 3, but if we did introduce any regressions, please let us know, and we’ll get a patch release out with a fix ASAP. We’re also happy to announce that Benoit Tigeot has joined the RSpec team since the last release. Welcome to the team, Benoit! We know you’ll do
RSpec 3.7 has just been released! Given our commitment to semantic versioning, this should be an easy upgrade for anyone already using RSpec 3, but if we did introduce any regressions, please let us know, and we’ll get a patch release out with a fix ASAP. RSpec continues to be a community-driven project with contributors from all over the world. This release includes over 127 commits and 31 merged
Myron MarstonSep 11, 2017As we announced back in February, Ian Dees and I have written a new book for the Pragmatic Bookshelf about RSpec, entitled Effective Testing with RSpec 3: Build Ruby Apps with Confidence. We’re happy to announce that the book is out of beta and is now shipping from PragProg and Amazon. We put a ton of work over the last three years into this project, distilling our combine
Sam Phippen, Myron Marston, Jon Rowe, Yuji NakayamaMay 4, 2017RSpec 3.6 がリリースされました! 私たちは semantic versioning への準拠を約束しているので、 既に RSpec 3 をお使いの場合、このバージョンへのアップグレードは簡単なはずです。 しかし、もしバグを見つけた場合は教えてください。 できるだけ早く修正をし、パッチ版をリリースします。 RSpec は世界中のコントリビュータと共に、コミュニティ主導のプロジェクトであり続けます。 今回のリリースには、 50 人以上のコントリビュータによる 450 以上のコミットと、 120 以上の pull request が含まれています! このリリースに向けて力になってくれたみなさん、ありがとう! 主な変更 Core: Example の外で発生したエラ
Sam Phippen, Myron Marston, Jon Rowe and Yuji NakayamaJul 1, 2016RSpec 3.5 がリリースされました! 私たちは semantic versioning に準拠する方針を掲げているため、 このリリースはすでに RSpec 3 を使っている方にとってなにか対応が必要になるものではありません。 しかし、もし私たちがバグを作り込んでしまっていた場合は教えてください。 できるだけ早く修正をし、パッチ版をリリースします。 RSpec は世界中のコントリビュータと共に、コミュニティ主導のプロジェクトであり続けます。 今回のリリースには、50 人以上のコントリビュータによる 600 以上のコミットと 150 以上の pull request が含まれています! このリリースに向けて力になってくれたみなさん、ありがとう! 主要な変更 C
Sam Phippen, Myron Marston and Jon RoweJul 1, 2016RSpec 3.5 has just been released! Given our commitment to semantic versioning, this should be a trivial upgrade for anyone already using RSpec 3, but if we did introduce any regressions, please let us know, and we’ll get a patch release out with a fix ASAP. RSpec continues to be a community-driven project with contributors from all over the world.
Sam PhippenFeb 6, 2016RSpec 3.5.0.beta1 has just been released! This is a big release for us because it’s the first release of RSpec we’ve published that has anything that could be described as approximating support for Rails 5. The purpose of this beta release is to enable people who are upgrading to Rails 5 to check their existing RSpec suites with Rails 5. If you do find any problems with this
Yuji NakayamaNov 13, 2015RSpec 3.4 がリリースされました! 私たちは semantic versioning に準拠する方針を掲げているため、 このリリースはすでに RSpec 3 を使っている方にとってなにか対応が必要になるものではありません。 しかし、もし私たちがバグを作り込んでしまっていた場合は教えてください。 できるだけ早く修正をし、パッチ版をリリースします。 RSpec は世界中のコントリビュータと共に、コミュニティ主導のプロジェクトであり続けます。 今回のリリースには、50 人近くのコントリビュータによる 500 以上のコミットと 160 以上の pull request が含まれています! このリリースに向けて力になってくれたみなさん、ありがとう! 主要な変更 Core: Bisect アルゴリズムの改善 RSpec 3.3 では、 実行順序
Myron MarstonJun 12, 2015RSpec 3.3 has just been released! Given our commitment to semantic versioning, this should be a trivial upgrade for anyone already using RSpec 3.0, 3.1 or 3.2, but if we did introduce any regressions, please let us know, and we’ll get a patch release out with a fix ASAP. RSpec continues to be a community-driven project with contributors from all over the world. This releas
Myron MarstonFeb 3, 2015RSpec 3.2 has just been released! Given our commitment to semantic versioning, this should be a trivial upgrade for anyone already using RSpec 3.0 or 3.1, but if we did introduce any regressions, please let us know, and we’ll get a patch release out with a fix ASAP. RSpec continues to be a community-driven project with contributors from all over the world. This release incl
Myron MarstonSep 4, 2014RSpec 3.1 has just been released! Given our commitment to semantic versioning, this should be a trivial upgrade for anyone already using RSpec 3.0, but if we did introduce any regressions, please let us know, and we’ll get a patch release out with a fix ASAP. RSpec continues to be a community-driven project with contributors from all over the world. This release includes 64
Myron MarstonMay 21, 2014Update: there’s a Japanese translation of this available now. RSpec 3.0.0 RC1 was released a couple days ago, and 3.0.0 final is just around the corner. We’ve been using the betas for the last 6 months and we’re excited to share them with you. Here’s whats new: Across all gems Removed support for Ruby 1.8.6 and 1.9.1 These versions of Ruby were end-of-lifed long ago and RS
Myron MarstonMay 18, 2014The RSpec team has released 3.0.0.rc1 and 2.99.0.rc1! Barring a new major issue being reported, this will be the last prerelease, and we’ll release 2.99.0 and 3.0.0 final in 2 weeks. If you’re upgrading a project from 2.x, check out the upgrade instructions. If you’re curious about what’s new in RSpec 3, check back in a few days – I’ll be posting full list of notable chang
Myron MarstonFeb 21, 2014The RSpec team has released 3.0.0.beta2 and 2.99.0.beta2. This is a huge release that includes tons of new features. I plan to do a full blog post listing and giving examples for all the notable new 3.0 features at a later date. For now, I’ve just got the full release notes. Thanks to all the contributors who helped make this release happen! I also want to thank those of y
Myron MarstonJan 14, 2014One of RSpec 3’s big new features is shipping 3.0.0.beta2: composable matchers. This feature supports more powerful, less brittle expectations, and opens up new possibilities. An Example In RSpec 2.x, I’ve written code like this on many occassions: # background_worker.rb class BackgroundWorker attr_reader :queue def initialize @queue = [] end def enqueue(job_data) queue <<
Myron MarstonNov 8, 2013The RSpec team has just released RSpec 3.0.0.beta1 – the first RSpec 3 pre-release! Along with that, we’ve released 2.99.0.beta1, which is intended to help with the upgrade process. I’d like to thank all the contributors, and especially the core team (Andy, Bradley, Jon, Sam and Xavier) for making this release happen. I don’t have the energy right now to write up a full “Wh
Myron MarstonJul 15, 2013Update: There’s a Japanese translation of this available now. RSpec 2.0 was released in October 2010. In the nearly three years since then, we’ve been able to continually improve RSpec without needing to make breaking changes, but we’ve reached a point where RSpec has a fair bit of cruft stemming from the need to retain backwards compatibility with older 2.x releases. RSpe
Myron MarstonJul 8, 2013We’ve just released RSpec 2.14. It will be the last 2.x feature release and is a recommended upgrade for all users. We’re getting started on RSpec 3. I’ll be blogging about our plans for RSpec 3 next week, so check back soon :). Thanks to all the contributors who helped make this RSpec release happen. Notable New Features Core: Profiler now profiles example groups, too RSpe
Myron MarstonJul 23, 2012RSpec was split into three subprojects for the last major release (2.0): rspec-core: The test runner and main DSL (describe, it, before, after, let, shared_examples, etc). rspec-expectations: Provides a readable syntax for specifying the expected outcomes of your tests using matchers. rspec-mocks: RSpec’s test-double framework. One of the cool things about this is that it
Myron MarstonJun 29, 2012In the 2.11 release, rspec-mocks is gaining a significant new capability that, as far as I know, isn’t provided by any other ruby mocking library: constant stubbing[^foot_1]. Let’s look at the API, and then talk a bit about some of the use cases for it. The API The main API is stub_const: describe "stub_const" do it "changes the constant value for the duration of the examp
There are a few things motivating this new syntax, and I wanted to blog about it to spread awareness. Delegation Issues Between method_missing, BasicObject and the standard library’s delegate, ruby has very rich tools for building delegate or proxy objects. Unfortunately, RSpec’s should syntax, as elegantly as it reads, is prone to producing weird, confusing failures when testing delegate/proxy ob
A message expectation (a.k.a. mock method) is an expectation that an object should receive a specific message during the execution of an example. Expecting Messages
Controller Examples live in $RAILS_ROOT/spec/controllers/. In contrast to Test::Unit, where the controller is initialized in the setup method, with Spec::Raiks you don’t. Instead, pass the controller class to the describe method. Spec::Rails automatically instantiates a controller for you, which you can access from the examples (it blocks) using the controller method. Isolation from views By de
A Rails plugin that brings RSpec to Rails. Features Use RSpec to independently specify models, views, controllers and helpers. Integrated fixture loading. Special generators for models and controllers that generate specs instead of tests. Special RSpec matchers for even more readable specs. Vision For people for whom TDD is a brand new concept, the testing support built into Rails is a huge leap f
Controller Examples live in $RAILS_ROOT/spec/controllers/. In contrast to Test::Unit, where the controller is initialized in the setup method, with Spec::Raiks you don’t. Instead, pass the controller class to the describe method. Spec::Rails automatically instantiates a controller for you, which you can access from the examples (it blocks) using the controller method. Isolation from views Spec::Ra
RSpec is composed of multiple libraries, which are designed to work together, or can be used independently with other testing tools like Cucumber or Minitest. The parts of RSpec are: rspec-core: The spec runner, providing a rich command line program, flexible and customizable reporting, and an API to organize your code examples. rspec-expectations: Provides a readable API to express expected outco
このページを最初にブックマークしてみませんか?
『RSpec: Behaviour Driven Development for Ruby』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く