spec/views/batch/edit.html.erb_spec.rb in sufia-6.2.0 vs spec/views/batch/edit.html.erb_spec.rb in sufia-6.3.0
- old
+ new
@@ -14,11 +14,11 @@
assign :batch, batch
assign :form, form
render
end
- it "should draw the page" do
+ it "draws the page" do
# form
expect(rendered).to have_selector "form#new_generic_file"
# should have browser validations
expect(rendered).not_to have_selector "form#new_generic_file[novalidate]"
@@ -33,9 +33,7 @@
expect(rendered).to have_selector('select#generic_file_rights[name="generic_file[rights][]"]')
page = Capybara::Node::Simple.new(rendered)
page.all('select#generic_file_rights option').each do |elem|
expect(elem.value).to_not be_empty
end
-
end
end
-