From e9530dce9bc9f70c22e2f2b253d0507b254db8fe Mon Sep 17 00:00:00 2001 From: Stella Rouzi Date: Fri, 15 Aug 2014 13:32:25 +0300 Subject: [PATCH] fix view test to search for input field with correct value --- spec/views/admin/conference/edit.html.haml_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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