タグ

2007年12月4日のブックマーク (3件)

  • RSpec little hacks - 世界線航跡蔵

    RSpecをオレオレ流に使うためのイディオムが結構溜まってきてます。 RubyKaigi2007でLTに応募しようと思ったけど間に合いそうにないのでself rejectして、RejectKaigiで宣伝だけしたものの一部です。 引数バリエーション メソッドの引数だけ微妙に変化を付けながら同じ流れを繰り返したい場合があります。たとえば、ActiveRecordモデルのvalidationのspecを書くとき。 こういうときは、家に書いてあるやり方では it 節の中に処理を全部書くことになるのですが、しかしモデルを構築する流れ自体が数行になることもありますし、それを何度も繰り返すのは冗長です。メンテナンス性にも欠けます。 そもそも、冗長さを嫌って私は実現コードの呼び出しは全部 before 節に書きたい派なのです。 describe Hoge, "がfooしたとき" do before d

    RSpec little hacks - 世界線航跡蔵
    ma2
    ma2 2007/12/04
  • OpenSocial - Google Code

    The web is better when it's social The web is more interesting when you can build apps that easily interact with your friends and colleagues. But with the trend towards more social applications also comes a growing list of site-specific APIs that developers must learn. OpenSocial defines a common API for social applications across multiple websites. With standard JavaScript and HTML, developers c

    ma2
    ma2 2007/12/04
    本家。
  • Bridge Word

    This shop will be powered by Are you the store owner? Log in here

    ma2
    ma2 2007/12/04
    しばらく追いかけること。