タグ

rspecに関するcooldaemonのブックマーク (4)

  • RSpec vs. Test::More

    This is Jonathan Rockway's blog, where he talks about Angerwhale, Catalyst, and Everything. Yesterday, someone pointed me in the direction of the RSpec testing framework for Ruby: http://blog.davidchelimsky.net/articles/2007/05/14/an-introduction-to-rspec-part-i I suggest reading the post, if only to enjoy literary constructions along the lines of: Behaviour Driven Development is an Agile developm

  • 外側から読むRSpec 1.0.x (1) - moroの日記

    RSpec 1.0 リリース記念ということで、ちょっと腰を入れてソースをよんでみました。「外側から読む」というタイトルどおり、specコマンドから起動されるシーケンスに沿って読んでいこうと思います。 読む spec はこんなの。 # written in array_spec.rb describe Array, ",initialized as [:one, :two, :three]" do before do @array = [:one, :two, :three] end it "should not be empty" do @array.should_not be_empty end end これを spec -fs -c array_spec.rb で実行します。 今回は起動されてから"describe"宣言が評価され、Behaviourオブジェクトが生成されるまでです。

    外側から読むRSpec 1.0.x (1) - moroの日記
  • File: TUTORIAL.ja

    【注意】この文書は、RSpecの具体的な使い方の例としては古くなっています。 RSpec 1.0.8 をベースにした説明である「スはスペックのス 【第 1 回】 RSpec の概要と、RSpec on Rails (モデル編)」も参照してください。(2007/12/14) RSpecを使おう RSpecはプログラミング言語Ruby用の ビヘイビア・スペシフィケーション・フレームワークだ。 Rubyについては、www.ruby-lang.org/ を、 ビヘイビア(振舞)駆動開発(Behaviour Driven Development)については、 www.daveastels.com/index.php?p=5 の_A New Look at Test Driven Development_ を 参照してほしい。 このドキュメントの目的は、ビヘイビア・スペシフィケーション・フレームワーク

  • RSpec ruby DSL for spec driven

    cooldaemon
    cooldaemon 2007/05/07
    ビヘイビア駆動開発のフレームワーク
  • 1