POSTORO
Webで見つけた気になるものをメモしたり、それにコメントしたりするブログ。
ラベル
test
の投稿を表示しています。
すべての投稿を表示
ラベル
test
の投稿を表示しています。
すべての投稿を表示
2010年8月27日金曜日
Railsのテストの結果を緑とか赤にして見やすくする
›
Windowsでテスト結果を見やすくする - Slow Dance gemからインストールできます。 gem install redgreen このgemを使うと、テストで「.」(=通過)には緑、「F」は赤で表示されるようになります。便利ですね。 色を着けたいだけというシ...
2010年8月26日木曜日
Railsのテストで assert_not_select()
›
こんな感じでいいんじゃないかな。 def assert_not_select(css_selector, text, message = nil) assert_select(css_selector, {:text => text, :count => 0}, ...
Railsの functinalテストで使う assert_tagは deprecatedらしい
›
Rails / Testing - WhyNotWiki Don't use it. It's deprecated in 1.2 in favor of assert_select. どうりで検索してもあまり見つからわいわけだ。
Fw: ActionMailerのユニットテストの書き方
›
POSTORO: ActionMailerのユニットテストの書き方 このサイトくらいしか見つからなかった。このサイトが参考にしたらしいサイトはリンク切れ。 あとは公式リファレンス見て調べるか。 ってFromヘッダーのテストの仕方が分からない。 toと同じようにfromをとろうとす...
続 ActionMailerのテストの書き方
›
Class: ActionMailer::Base deliveries - Keeps an array of all the emails sent out through the Action Mailer with delivery_method :test. Most ...
ActionMailerのユニットテストの書き方
›
お手軽なActionMailerのテスト方法 - satoko's blog - s21g # テスト時に配送したメールの配列を保存する。 ActionMailer::Base.deliveries = [] このサイトくらいしか見つからなかった。このサイトが参考にしたら...
2010年8月25日水曜日
Railsでテストを書くときの指針の参考に
›
Railsでテストを書く勘所 - moroの日記 で、そこでRailsとTDD(BDD)の話なんかしたので、一週間で思ったことをつらつらと。たぶん不正確というか、理解の足りないところもいろいろあるので、そのへんのツッコミをいただけると感謝です。 RSpecが念頭に置かれているが、...
Rubyで使える assert系メソッド一覧
›
Test::Unit - Rubyリファレンスマニュアル 各 assertion の最後の引数 message はテストが失敗したときに表示される メッセージ assert_not_equalはあるのに、assert_not(あるいはassert_false)は無いんだー
Excelでテスト手順を書くとそれを Seleniumで自動実行してくれるツール
›
"Excelenium"(エクセレニウム)で,快適な自動回帰テストを (Seleniumのテストスクリプトとテスト仕様書を自動生成) - 主に言語とシステム開発に関して テスト仕様を書くだけで,仕様書自身がテストを自動でやってくれる。 それがExceleni...
2010年8月24日火曜日
Railsの Fixtureで 省略したときに自動で振られるIDは
›
ラベルの文字列のハッシュらしい。 Foxy fixtures (Rails 2.2.2) ただ、一つ気になっていたのは、idが85969009とか、巨大な整数になることです。しかし、今日知ったのですが、これはラベルの文字列のハッシュだったんですね。これは、実に便利で、この例は ...
Railsのテストで Fixtureで作ったデータを簡単に呼び出す方法
›
Class: Fixtures Alternatively, you may enable auto-instantiation of the fixture data. For instance, take the following tests: test "f...
Railsの Fixtureでは関連のあるモデルを YAMLのラベルでも指定できる
›
Class: Fixtures Add a few more monkeys and pirates and break this into multiple files, and it gets pretty hard to keep track of what‘s going...
Railsの Fixtureの YAMLには Rubyのコードもかけるらしい
›
Class: Fixtures Some times you don‘t care about the content of the fixtures as much as you care about the volume. In these cases, you can mi...
2010年8月23日月曜日
Rails 2.3では テストのassert_validは使えない
›
assert_valid in unit tests after upgrade to rails 2.3 doesn't work - Ruby on Rails: Talk | Google グループ It was deprecated at 2.2.2 - ...
2010年1月14日木曜日
もひとつテスト
›
ScribeFire Blog Editor :: Add-ons for Firefox ScribeFire is a full-featured blog editor that integrates with your browser and lets you easil...
ScribeFireで引用の下にコメントを入れる
›
ScribeFire Blog Editor :: Add-ons for Firefox ScribeFire is a full-featured blog editor that integrates with your browser and lets you easil...
›
ホーム
ウェブ バージョンを表示