diff --git a/spec/views/admin/conference/edit.html.haml_spec.rb b/spec/views/admin/conference/edit.html.haml_spec.rb index b25d860a..a80e1f29 100644 --- a/spec/views/admin/conference/edit.html.haml_spec.rb +++ b/spec/views/admin/conference/edit.html.haml_spec.rb @@ -6,6 +6,6 @@ describe 'admin/conference/edit' do @conference = create(:conference, title: 'openSUSE') assign :conference, @conference render template: 'admin/conference/edit.html.haml' - expect(rendered).to include('openSUSE') + expect(rendered).to have_selector("input[value='openSUSE']") end end