aboutsummaryrefslogtreecommitdiffstats
path: root/spec/views/timebands/new.html.erb_spec.rb
blob: f5e85f20cff5251ccb322bc67fe37b8131cea34b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
require 'spec_helper'

describe "/timebands/new", :type => :view do
  assign_referential
  let!(:timeband) {  assign(:timeband, build(:timeband)) }

  describe "form" do

    it "should render inputs" do
      render
      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
end