Rails 3.2.7がリリースされましたが、アップデートする際に注意です。 おそらくバグだと思うのですが、引数なしでrake specした際、Rails.envがdevelopmentになってしまいます。 # まずはRails 3.2.7をインストール rails new rails327 --skip-bundle cd rails327 # Gemfileを書いてbundle vi Gemfile # 下記参照 bundle rake db:migrate # rspecを設定 rails g rspec:install echo "p Rails.env" >> spec/spec_helper.rb echo "require 'spec_helper'" > spec/hoge_spec.rb # spec実行 rake spec Gemfileには、以下のように書きます。 g

