Permalink
Browse files

Tests reflecting recent pagination changes

  • Loading branch information...
lmrodriguezr committed Aug 25, 2017
1 parent 9dcc3ad commit b2b1d746c820523d41d9c7cfa545df5c5d99583e
@@ -5,6 +5,7 @@
ssu: "Ribosomal RNA (small subunit)",
cds: "Gene prediction",
mytaxa_scan: "MyTaxa Scan",
mytaxa: "MyTaxa",
haai_distances: "hAAI distances",
aai_distances: "AAI distances",
ani_distances: "ANI distances",
@@ -15,7 +16,7 @@
elsif not obj.is_a? MiGA::Dataset
proj = obj.project
end
r_open = [:distances, :project_stats].include? key
r_open = [:distances, :project_stats, :mytaxa].include? key
%>

<h3 role="button" data-toggle="collapse" class="result-title"
@@ -29,8 +29,8 @@ def teardown
log_in_as @user
get project_reference_datasets_path(@project)
assert_template "projects/reference_datasets"
assert_select "div.pagination"
assert_select "ol.datasets li", count: 30
assert_select "ul.pagination"
assert_select "ol.datasets li", count: 10
assert_select "ol.datasets li#dataset-vaz_1 span.name",
/#{@project.code}\s+\|\s+vaz 1/
assert_select "ol.datasets li span.timestamp",
@@ -41,7 +41,7 @@ def teardown
log_in_as @user
get project_reference_datasets_path(@project), {page: 4}
assert_template "projects/reference_datasets"
assert_select "div.pagination"
assert_select "ul.pagination"
assert_select "ol.datasets li", count: 10
end

@@ -10,7 +10,7 @@ def setup
log_in_as(@admin)
get users_path
assert_template "users/index"
assert_select "div.pagination"
assert_select "ul.pagination"
first_page_of_users = User.paginate(page: 1)
first_page_of_users.each do |user|
assert_select "a[href=?]", user_path(user), text: user.name

0 comments on commit b2b1d74

Please sign in to comment.