Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 0 additions & 40 deletions test/controllers/authors_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,44 +5,4 @@ class AuthorsControllerTest < ActionDispatch::IntegrationTest
@author = authors(:one)
end

test 'should get index' do
get authors_url
assert_response :success
end

test 'should get new' do
get new_author_url
assert_response :success
end

test 'should create author' do
assert_difference('Author.count') do
post authors_url, params: { author: { family: @author.family, given: @author.given } }
end

assert_redirected_to author_url(Author.last)
end

test 'should show author' do
get author_url(@author)
assert_response :success
end

test 'should get edit' do
get edit_author_url(@author)
assert_response :success
end

test 'should update author' do
patch author_url(@author), params: { author: { family: @author.family, given: @author.given } }
assert_redirected_to author_url(@author)
end

test 'should destroy author' do
assert_difference('Author.count', -1) do
delete author_url(@author)
end

assert_redirected_to authors_url
end
end
40 changes: 0 additions & 40 deletions test/controllers/checks_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,44 +5,4 @@ class ChecksControllerTest < ActionDispatch::IntegrationTest
@check = checks(:one)
end

test 'should get index' do
get checks_url
assert_response :success
end

test 'should get new' do
get new_check_url
assert_response :success
end

test 'should create check' do
assert_difference('Check.count') do
post checks_url, params: { check: { kind: @check.kind, name_id: @check.name_id, pass: @check.pass, user_id: @check.user_id } }
end

assert_redirected_to check_url(Check.last)
end

test 'should show check' do
get check_url(@check)
assert_response :success
end

test 'should get edit' do
get edit_check_url(@check)
assert_response :success
end

test 'should update check' do
patch check_url(@check), params: { check: { kind: @check.kind, name_id: @check.name_id, pass: @check.pass, user_id: @check.user_id } }
assert_redirected_to check_url(@check)
end

test 'should destroy check' do
assert_difference('Check.count', -1) do
delete check_url(@check)
end

assert_redirected_to checks_url
end
end
40 changes: 0 additions & 40 deletions test/controllers/contacts_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,44 +5,4 @@ class ContactsControllerTest < ActionDispatch::IntegrationTest
@contact = contacts(:one)
end

test "should get index" do
get contacts_url
assert_response :success
end

test "should get new" do
get new_contact_url
assert_response :success
end

test "should create contact" do
assert_difference('Contact.count') do
post contacts_url, params: { contact: { author_id: @contact.author_id, cc: @contact.cc, publication_id: @contact.publication_id, subject: @contact.subject, to: @contact.to, user_id: @contact.user_id } }
end

assert_redirected_to contact_url(Contact.last)
end

test "should show contact" do
get contact_url(@contact)
assert_response :success
end

test "should get edit" do
get edit_contact_url(@contact)
assert_response :success
end

test "should update contact" do
patch contact_url(@contact), params: { contact: { author_id: @contact.author_id, cc: @contact.cc, publication_id: @contact.publication_id, subject: @contact.subject, to: @contact.to, user_id: @contact.user_id } }
assert_redirected_to contact_url(@contact)
end

test "should destroy contact" do
assert_difference('Contact.count', -1) do
delete contact_url(@contact)
end

assert_redirected_to contacts_url
end
end
40 changes: 0 additions & 40 deletions test/controllers/genomes_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,44 +5,4 @@ class GenomesControllerTest < ActionDispatch::IntegrationTest
@genome = genomes(:one)
end

test 'should get index' do
get genomes_url
assert_response :success
end

test 'should get new' do
get new_genome_url
assert_response :success
end

test 'should create genome' do
assert_difference('Genome.count') do
post genomes_url, params: { genome: { accession: @genome.accession, auto_check: @genome.auto_check, completeness: @genome.completeness, contamination: @genome.contamination, database: @genome.database, gc_content: @genome.gc_content, most_complete_16s: @genome.most_complete_16s, most_complete_23s: @genome.most_complete_23s, number_of_16s: @genome.number_of_16s, number_of_23s: @genome.number_of_23s, number_of_trnas: @genome.number_of_trnas, seq_depth: @genome.seq_depth, type: @genome.type, updated_by: @genome.updated_by } }
end

assert_redirected_to genome_url(Genome.last)
end

test 'should show genome' do
get genome_url(@genome)
assert_response :success
end

test 'should get edit' do
get edit_genome_url(@genome)
assert_response :success
end

test 'should update genome' do
patch genome_url(@genome), params: { genome: { accession: @genome.accession, auto_check: @genome.auto_check, completeness: @genome.completeness, contamination: @genome.contamination, database: @genome.database, gc_content: @genome.gc_content, most_complete_16s: @genome.most_complete_16s, most_complete_23s: @genome.most_complete_23s, number_of_16s: @genome.number_of_16s, number_of_23s: @genome.number_of_23s, number_of_trnas: @genome.number_of_trnas, seq_depth: @genome.seq_depth, type: @genome.type, updated_by: @genome.updated_by } }
assert_redirected_to genome_url(@genome)
end

test 'should destroy genome' do
assert_difference('Genome.count', -1) do
delete genome_url(@genome)
end

assert_redirected_to genomes_url
end
end
40 changes: 0 additions & 40 deletions test/controllers/names_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,44 +5,4 @@ class NamesControllerTest < ActionDispatch::IntegrationTest
@name = names(:one)
end

test 'should get index' do
get names_url
assert_response :success
end

test 'should get new' do
get new_name_url
assert_response :success
end

test 'should create name' do
assert_difference('Name.count') do
post names_url, params: { name: { name: @name.name } }
end

assert_redirected_to name_url(Name.last)
end

test 'should show name' do
get name_url(@name)
assert_response :success
end

test 'should get edit' do
get edit_name_url(@name)
assert_response :success
end

test 'should update name' do
patch name_url(@name), params: { name: { name: @name.name } }
assert_redirected_to name_url(@name)
end

test 'should destroy name' do
assert_difference('Name.count', -1) do
delete name_url(@name)
end

assert_redirected_to names_url
end
end
8 changes: 0 additions & 8 deletions test/controllers/page_controller_test.rb
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
require 'test_helper'

class PageControllerTest < ActionDispatch::IntegrationTest
test 'should get publications' do
get page_publications_url
assert_response :success
end

test 'should get seqcode' do
get page_seqcode_url
assert_response :success
end
end
40 changes: 0 additions & 40 deletions test/controllers/placements_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,44 +5,4 @@ class PlacementsControllerTest < ActionDispatch::IntegrationTest
@placement = placements(:one)
end

test 'should get index' do
get placements_url
assert_response :success
end

test 'should get new' do
get new_placement_url
assert_response :success
end

test 'should create placement' do
assert_difference('Placement.count') do
post placements_url, params: { placement: { assigned_by: @placement.assigned_by, child_id: @placement.child_id, parent_id: @placement.parent_id, preferred: @placement.preferred } }
end

assert_redirected_to placement_url(Placement.last)
end

test 'should show placement' do
get placement_url(@placement)
assert_response :success
end

test 'should get edit' do
get edit_placement_url(@placement)
assert_response :success
end

test 'should update placement' do
patch placement_url(@placement), params: { placement: { assigned_by: @placement.assigned_by, child_id: @placement.child_id, parent_id: @placement.parent_id, preferred: @placement.preferred } }
assert_redirected_to placement_url(@placement)
end

test 'should destroy placement' do
assert_difference('Placement.count', -1) do
delete placement_url(@placement)
end

assert_redirected_to placements_url
end
end
40 changes: 0 additions & 40 deletions test/controllers/publication_names_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,44 +5,4 @@ class PublicationNamesControllerTest < ActionDispatch::IntegrationTest
@publication_name = publication_names(:one)
end

test 'should get index' do
get publication_names_url
assert_response :success
end

test 'should get new' do
get new_publication_name_url
assert_response :success
end

test 'should create publication_name' do
assert_difference('PublicationName.count') do
post publication_names_url, params: { publication_name: { name_id: @publication_name.name_id, publication_id: @publication_name.publication_id } }
end

assert_redirected_to publication_name_url(PublicationName.last)
end

test 'should show publication_name' do
get publication_name_url(@publication_name)
assert_response :success
end

test 'should get edit' do
get edit_publication_name_url(@publication_name)
assert_response :success
end

test 'should update publication_name' do
patch publication_name_url(@publication_name), params: { publication_name: { name_id: @publication_name.name_id, publication_id: @publication_name.publication_id } }
assert_redirected_to publication_name_url(@publication_name)
end

test 'should destroy publication_name' do
assert_difference('PublicationName.count', -1) do
delete publication_name_url(@publication_name)
end

assert_redirected_to publication_names_url
end
end
40 changes: 0 additions & 40 deletions test/controllers/publications_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,44 +5,4 @@ class PublicationsControllerTest < ActionDispatch::IntegrationTest
@publication = publications(:one)
end

test 'should get index' do
get publications_url
assert_response :success
end

test 'should get new' do
get new_publication_url
assert_response :success
end

test 'should create publication' do
assert_difference('Publication.count') do
post publications_url, params: { publication: { crossref_json: @publication.crossref_json, doi: @publication.doi, journal: @publication.journal, journal_date: @publication.journal_date, journal_loc: @publication.journal_loc, title: @publication.title, type: @publication.type, url: @publication.url } }
end

assert_redirected_to publication_url(Publication.last)
end

test 'should show publication' do
get publication_url(@publication)
assert_response :success
end

test 'should get edit' do
get edit_publication_url(@publication)
assert_response :success
end

test 'should update publication' do
patch publication_url(@publication), params: { publication: { crossref_json: @publication.crossref_json, doi: @publication.doi, journal: @publication.journal, journal_date: @publication.journal_date, journal_loc: @publication.journal_loc, title: @publication.title, type: @publication.type, url: @publication.url } }
assert_redirected_to publication_url(@publication)
end

test 'should destroy publication' do
assert_difference('Publication.count', -1) do
delete publication_url(@publication)
end

assert_redirected_to publications_url
end
end
Loading
Loading