{"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":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u6e96\u5099 % sudo gem install diff-lcs redgreen ruby-snarl ZenT\" \/>\n\t<meta name=\"robots\" content=\"max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n\t<meta name=\"author\" content=\"\u3061\u3085\u3046\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/ecpplus.net\/weblog\/rspec-on-rails\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"ja_JP\" \/>\n\t\t<meta property=\"og:site_name\" content=\"\u5909\u306a\u30e4\u30d0\u3044\u3082\u3093\u30ed\u30b0\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"RSpec on Rails \u3092\u4f7f\u3046\u65b9\u6cd5 | \u5909\u306a\u30e4\u30d0\u3044\u3082\u3093\u30ed\u30b0\" \/>\n\t\t<meta property=\"og:description\" content=\"\u6e96\u5099 % sudo gem install diff-lcs redgreen ruby-snarl ZenT\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/ecpplus.net\/weblog\/rspec-on-rails\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/ecpplus.net\/weblog\/wp-content\/uploads\/2011\/08\/ruby_on_rails.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/ecpplus.net\/weblog\/wp-content\/uploads\/2011\/08\/ruby_on_rails.png\" \/>\n\t\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t\t<meta property=\"og:image:height\" content=\"768\" \/>\n\t\t<meta property=\"article:tag\" content=\"development\" \/>\n\t\t<meta property=\"article:tag\" content=\"rails\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2009-01-29T05:41:03+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2020-06-15T13:09:48+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@ecpplus\" \/>\n\t\t<meta name=\"twitter:title\" content=\"RSpec on Rails \u3092\u4f7f\u3046\u65b9\u6cd5 | \u5909\u306a\u30e4\u30d0\u3044\u3082\u3093\u30ed\u30b0\" \/>\n\t\t<meta name=\"twitter:description\" content=\"\u6e96\u5099 % sudo gem install diff-lcs redgreen ruby-snarl ZenT\" \/>\n\t\t<meta name=\"twitter:creator\" content=\"@ecpplus\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/ecpplus.net\/weblog\/wp-content\/uploads\/2011\/08\/ruby_on_rails.png\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"RSpec on Rails \u3092\u4f7f\u3046\u65b9\u6cd5 | \u5909\u306a\u30e4\u30d0\u3044\u3082\u3093\u30ed\u30b0","description":"\u6e96\u5099 % sudo gem install diff-lcs redgreen ruby-snarl ZenT","canonical_url":"https:\/\/ecpplus.net\/weblog\/rspec-on-rails\/","robots":"max-snippet:-1, max-image-preview:large, max-video-preview:-1","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"ja_JP","og:site_name":"\u5909\u306a\u30e4\u30d0\u3044\u3082\u3093\u30ed\u30b0","og:type":"article","og:title":"RSpec on Rails \u3092\u4f7f\u3046\u65b9\u6cd5 | \u5909\u306a\u30e4\u30d0\u3044\u3082\u3093\u30ed\u30b0","og:description":"\u6e96\u5099 % sudo gem install diff-lcs redgreen ruby-snarl ZenT","og:url":"https:\/\/ecpplus.net\/weblog\/rspec-on-rails\/","og:image":"https:\/\/ecpplus.net\/weblog\/wp-content\/uploads\/2011\/08\/ruby_on_rails.png","og:image:secure_url":"https:\/\/ecpplus.net\/weblog\/wp-content\/uploads\/2011\/08\/ruby_on_rails.png","og:image:width":1920,"og:image:height":768,"article:tag":["development","rails"],"article:published_time":"2009-01-29T05:41:03+00:00","article:modified_time":"2020-06-15T13:09:48+00:00","twitter:card":"summary_large_image","twitter:site":"@ecpplus","twitter:title":"RSpec on Rails \u3092\u4f7f\u3046\u65b9\u6cd5 | \u5909\u306a\u30e4\u30d0\u3044\u3082\u3093\u30ed\u30b0","twitter:description":"\u6e96\u5099 % sudo gem install diff-lcs redgreen ruby-snarl ZenT","twitter:creator":"@ecpplus","twitter:image":"https:\/\/ecpplus.net\/weblog\/wp-content\/uploads\/2011\/08\/ruby_on_rails.png"},"aioseo_meta_data":{"post_id":"530","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":"","og_description":"","og_object_type":"article","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":"","og_article_tags":"","twitter_use_og":false,"twitter_card":"summary_large_image","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2021-01-02 15:53:44","updated":"2022-09-29 09:57:48","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/ecpplus.net\/weblog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/ecpplus.net\/weblog\/category\/development\/\" title=\"Development\">Development<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tRSpec on Rails \u3092\u4f7f\u3046\u65b9\u6cd5\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/ecpplus.net\/weblog"},{"label":"Development","link":"https:\/\/ecpplus.net\/weblog\/category\/development\/"},{"label":"RSpec on Rails \u3092\u4f7f\u3046\u65b9\u6cd5","link":"https:\/\/ecpplus.net\/weblog\/rspec-on-rails\/"}],"_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}]}}