{"id":530,"date":"2009-01-29T14:41:03","date_gmt":"2009-01-29T05:41:03","guid":{"rendered":"http:\/\/ecpplus.net\/weblog\/?p=530"},"modified":"2020-06-15T22:09:48","modified_gmt":"2020-06-15T13:09:48","slug":"rspec-on-rails","status":"publish","type":"post","link":"https:\/\/ecpplus.net\/weblog\/rspec-on-rails\/","title":{"rendered":"RSpec on Rails \u3092\u4f7f\u3046\u65b9\u6cd5"},"content":{"rendered":"<h3>\u6e96\u5099<\/h3>\n<pre lang=\"\">% sudo gem install diff-lcs redgreen ruby-snarl ZenTest launchy rspec webrat autotest_screen --no-ri --no-rdoc<\/pre>\n<h3>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<pre lang=\"\">%  script\/plugin install git:\/\/github.com\/dchelimsky\/rspec.git\n% script\/plugin install git:\/\/github.com\/dchelimsky\/rspec-rails.git\n% script\/generate rspec<\/pre>\n<p>Rails\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u4e0a\u3052\u305f\u3089\u3001\u4e0a\u8a18\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u306a\u3044\u3068\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u30e1\u30bd\u30c3\u30c9\u304c\u3042\u308b\u306e\u3067\u6ce8\u610f\u3002<\/p>\n<h4>Rails2.2.2\u3067\u30a8\u30e9\u30fc\u3067\u52d5\u304b\u306a\u304b\u3063\u305f<\/h4>\n<pre lang=\"\">vendor\/plugins\/rspec_on_rails\/lib\/spec\/rails\/example\/rails_example_group.rb:4:\nundefined method `cache_template_extensions=' for\nActionView::Base:Class (NoMethodError)<\/pre>\n<p>\u3068\u3044\u3046\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u30c6\u30b9\u30c8\u304c\u5b9f\u884c\u3067\u304d\u306a\u304b\u3063\u305f\u3002<br \/>\n\u8a72\u5f53\u7b87\u6240\u3092\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3057\u3066\u3082\u4eca\u306e\u3068\u3053\u308d\u554f\u984c\u306f\u8d77\u304d\u3066\u3044\u306a\u3044\u306e\u3067\u3001\u3053\u306e\u307e\u307e\u7d9a\u3051\u3066\u307f\u3088\u3046\u3068\u601d\u3046\u3002<\/p>\n<pre lang=\"ruby\">#ActionView::Base.cache_template_extensions = false<\/pre>\n<h3>Growl\u3068\u9023\u643a<\/h3>\n<p>\u307e\u305a\u3001Growl\u306e\u8a2d\u5b9a\u3067\u300c\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u300d\u306e\u300c\u53d7\u4fe1\u3055\u308c\u308b\u901a\u77e5\u3092\u958b\u304f\u300d\u306b\u30c1\u30a7\u30c3\u30af\u3092\u5165\u308c\u308b\u3002<\/p>\n<p>\u3042\u3068\u3001growlnotify \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u306a\u304b\u3063\u305f\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002Growl-1.1.4.dmg \u3092\u30de\u30a6\u30f3\u30c8\u3057\u305f\u3089\u3001<\/p>\n<pre lang=\"\">% cd \/Volumes\/Growl-1.1.4\/Extras\/growlnotify\n% sudo .\/install.sh<\/pre>\n<p>\u3068\u3044\u3046\u611f\u3058\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3042\u3068\u306f\u3001autotest \u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092 ~\/.autotest \u306b\u8a18\u8ff0\u3059\u308b\u3002<a href=\"http:\/\/blog.s21g.com\/articles\/889\">growl\u3068autotest\u3092\u9023\u643a\u3055\u305b\u308b &#8211; Hello, world! &#8211; s21g<\/a> \u306e\u901a\u308a\u306b\u8a2d\u5b9a\u3055\u305b\u3066\u3082\u3089\u3046\u3002\u5fc5\u8981\u3042\u308b\u304b\u5206\u304b\u3089\u306a\u3044\u3051\u3069\u3001\u4e00\u5fdc Growl \u306e\u518d\u8d77\u52d5\u3092\u3057\u3066\u8a66\u3057\u305f\u3068\u3053\u308d\u7121\u4e8b\u52d5\u4f5c\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u52d5\u304b\u306a\u304b\u3063\u305f\u3089\u3001<code>export RSPEC=true<\/code> \u3092\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6e96\u5099 % sudo gem install diff-lcs redgreen ruby-snarl ZenTest launchy rspec webrat autotest_screen &#8211;no-ri &#8211;no-r [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2521,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[43],"tags":[10],"class_list":["post-530","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-development","tag-rails"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/posts\/530","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/comments?post=530"}],"version-history":[{"count":1,"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/posts\/530\/revisions"}],"predecessor-version":[{"id":2540,"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/posts\/530\/revisions\/2540"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/media\/2521"}],"wp:attachment":[{"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/media?parent=530"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/categories?post=530"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/tags?post=530"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}