&tag(RSpec/トラブルシューティング); *目次 [#t119f39d] #contents *関連ページ [#g2596805] -[[RSpec]] *参考情報 [#m4b3dbbe] *トラブルシューティング [#ob7d9adf] **spec実行時に「`require': cannot load such file -- spec_helper (LoadError)」 [#t6653edb] -spec_helperを作ってないのかもしれない。以下のコマンドを実行してみる。 rails generate rspec:install **describeでエラー発生「syntax error, unexpected keyword_do_block, expecting => (SyntaxError)」 [#h626e9d5] -describeの書き方が変わったらしい。[[Myron Marston » RSpec 2.99 and 3.0 RC1 have been released!:http://myronmars.to/n/dev-blog/2014/05/rspec-2-99-and-3-0-rc-1-have-been-released]]によると、「Issue a deprecation when described_class is accessed from within a nested describe <SomeClass> example group, since described_class will return the innermost described class in RSpec 3 rather than the outermost described class, as it behaved in RSpec 2. (Myron Marston)」とある。 --以前: describe Simple, :type => :model ,'説明分' do --以後: describe '説明分', :type => :model do