Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix failing sprite tests
  • Loading branch information
zoffixznet committed Nov 21, 2015
1 parent e2f4cbc commit ebfcfd7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions web/t/02-app/01-home-page.t
Expand Up @@ -4,7 +4,7 @@ use strict;
use warnings FATAL => 'all';
use Test::Most;
use Mojo::URL;
use Test::Mojo::WithRoles qw/SubmitForm ElementCounter/;
use Test::Mojo::WithRoles qw/SubmitForm ElementCounter Debug/;
use t::Helper;

my $db_file = t::Helper::setup_db_file;
Expand All @@ -31,7 +31,7 @@ $_->{travis_url} = Mojo::URL->new($_->{url})->host('travis-ci.org')
# ->dived_text_is('.added' => '2015-11-04')
->element_count_is(".name a[href='$dist1->{url}']" => 1)
->element_count_is('.name a[href="/dist/Dist1"]' => 1)
->element_count_is('.name a i.sprite.s-dist1' => 1)
->element_count_is('.name a i.dist-logos.s-dist1' => 1)
->element_count_is(".travis a[href='$dist1->{travis_url}']" => 1)
->element_count_is(".stars a[href='$dist1->{url}stargazers']" => 1)
->element_count_is(".issues a[href='$dist1->{url}issues']" => 1)
Expand All @@ -49,7 +49,7 @@ $_->{travis_url} = Mojo::URL->new($_->{url})->host('travis-ci.org')
# ->dived_text_is('.added' => '2015-10-26')
->element_count_is(".name a[href='$dist2->{url}']" => 1)
->element_count_is('.name a[href="/dist/Dist2"]' => 1)
->element_count_is('.name a i.sprite.s-dist2' => 1)
->element_count_is('.name a i.dist-logos.s-dist2' => 1)
->element_count_is('.kwalitee a[href="/kwalitee/Dist2"]' => 1)
->element_count_is(".travis a[href='$dist2->{travis_url}']" => 1)
->element_count_is(".stars a[href='$dist2->{url}stargazers']" => 1)
Expand Down
8 changes: 4 additions & 4 deletions web/t/Helper.pm
Expand Up @@ -31,7 +31,7 @@ sub dist_in_data {
url => 'https://github.com/perl6/modules.perl6.org/',
description => 'Test Dist1',
author_id => 'Dynacoder',
logo => 'dist1',
logo => 's-dist1',
has_readme => 1,
panda => 2,
has_tests => 1,
Expand All @@ -46,7 +46,7 @@ sub dist_in_data {
url => 'https://github.com/perl6/ecosystem/',
description => 'Test Dist2',
author_id => 'Morbo',
logo => 'dist2',
logo => 's-dist2',
has_readme => 0,
panda => 0,
has_tests => 0,
Expand All @@ -66,7 +66,7 @@ sub dist_out_data {
url => 'https://github.com/perl6/modules.perl6.org/',
description => 'Test Dist1',
author_id => 'Dynacoder',
logo => 'dist1',
logo => 's-dist1',
kwalitee => 100,
travis_status=> 'passing',
stars => 42,
Expand All @@ -79,7 +79,7 @@ sub dist_out_data {
url => 'https://github.com/perl6/ecosystem/',
description => 'Test Dist2',
author_id => 'Morbo',
logo => 'dist2',
logo => 's-dist2',
kwalitee => 100,
travis_status=> 'failing',
stars => 14,
Expand Down

0 comments on commit ebfcfd7

Please sign in to comment.