私はRspecを初めて使用しています。私は、あるモデルでいくつかのアクションをカバーするテストケースを書いています。ここに私のRSpecのコードそれはrequire 'spec_helper'
だあなたのケースではライン1RSpecは0個の例を返します。0個の失敗
に始まり
test_cover_image_spec.rb
require 'spec_helper'
describe Issue do
before :each do
@issue = Issue.joins(:multimedia).uniq.first
binding.pry
end
describe '#release_cover_image' do
context 'While making an issue open' do
it 'should make issue cover in S3 accessible' do
put :update, :id => @issue.id, :issue => @issue.attributes = {:open => '1'}
end
end
end
end
? –
RSpecで0の例が報告され、pryが開かない場合、おそらくファイルをロードしないことになります。 – spickermann
ファイルはどのディレクトリにありますか?ファイル名の最後に_spec.rbを追加したことがありますか? – RichardAE