2014-10-13から1日間の記事一覧

Rails 4 で shared_context を使ったテストを実行すると 「Could not find shared context "hoge"」 というエラーが出るときの対処方法

環境 Rails 4.1.5 RSpec 3.1.4 現象 bundle exec rspec を実行すると、「Could not find shared context "hoge"」 というエラーが表示される。 対処方法 spec_helper.rb の RSpec.configure do |config| の外側に下記を記述することでエラーが出なくなった。…