サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
アメリカ大統領選
rspec.rubyforge.org
RSpec ships with a number of useful Expression Matchers. An Expression Matcher is any object that responds to the following methods: matches?(actual) failure_message negative_failure_message #optional description #optional See Spec::Expectations to learn how to use these as Expectation Matchers. See Spec::Mocks to learn how to use them as Mock Argument Constraints. Predicates In addition to those
Renders a template for a View Spec, which then provides access to the result through the response. Also supports render with :inline, which you can use to spec custom form builders, helpers, etc, in the context of a view. Examples render('/people/list') render('/people/list', :helper => MyHelper) render('/people/list', :helpers => [MyHelper, MyOtherHelper]) render(:partial => '/people/_address') r
RSpec ships with a number of useful Expression Matchers. An Expression Matcher is any object that responds to the following methods: matches?(actual) failure_message_for_should These methods are also part of the matcher protocol, but are optional: does_not_match?(actual) failure_message_for_should_not description #optional These methods are from older versions of the protocol. They are still suppo
このページを最初にブックマークしてみませんか?
『RSpec ruby DSL for spec driven』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く