Submit social housing lettings and sales data (CORE)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
423 B

describe 'questions/_numeric_question.html.erb' do
context 'when given a label' do
let(:label) { "Test Label" }
it 'displays a numeric entry field' do
render :partial => 'numeric_question', locals: { label: label }
expect(rendered).to have_selector('//input[@type="number"]')
expect(rendered).to have_selector("//label[contains('#{label}')]")
end
end
end