Тест кейс не работает

context 'with short description' do
  let(:params) { common_params.merge(description: Faker::Lorem.paragraph_by_chars(number: 49)) }

  it 'does not create film' do
    expect { subject }.not_to change(Film, :count)
  end
end 

вот ошибка

Failures:

  1) FilmsController#create with short description does not create film
     Failure/Error: expect { subject }.not_to change(Film, :count)
       expected Film.count not to have changed, but did change from 0 to 1
      ./spec/controllers/films_controller_spec.rb:75:in `block (4 levels) in <main>' 

Ответы (0 шт):