diff options
Diffstat (limited to 'spec/views/timebands/edit.html.erb_spec.rb')
| -rw-r--r-- | spec/views/timebands/edit.html.erb_spec.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/spec/views/timebands/edit.html.erb_spec.rb b/spec/views/timebands/edit.html.erb_spec.rb index 26c85c229..5f6051884 100644 --- a/spec/views/timebands/edit.html.erb_spec.rb +++ b/spec/views/timebands/edit.html.erb_spec.rb @@ -14,9 +14,10 @@ describe "/timebands/edit", :type => :view do describe "form" do it "should render input for timeband" do render - expect(rendered).to have_selector("form") do - with_tag "input[type=text][name='timeband[name]'][value=?]", timeband.name - end + expect(rendered).to have_field('timeband[name]') + expect(rendered).to have_field('timeband[start_time(4i)]') + expect(rendered).to have_field('timeband[start_time(5i)]') + expect(rendered).to have_selector('button[type=submit]') end end |
