Permalink
Browse files

More sections added

  • Loading branch information...
1 parent 3ee9a35 commit a902934cab0f20792c208374b7bbc5efe6787bbf @kthakore committed Mar 29, 2011
Showing with 19 additions and 1 deletion.
  1. +2 −0 final/final.tex
  2. +17 −1 implementation/SIMS/SIMS/t/01app.t
View
@@ -506,6 +506,8 @@ \section{Test Plan}
\subsection{Unit Tests}
\subsection{Integration Tests}
+
+
\section{Conclusions}
blurb
\subsection{Recommendation}
@@ -2,9 +2,25 @@
use strict;
use warnings;
use Test::More;
+use Test::WWW::Mechanize::Catalyst;
+use HTTP::Request::Common;
BEGIN { use_ok 'Catalyst::Test', 'SIMS' }
-ok( request('/')->is_success, 'Request should succeed' );
+ok( request('/login')->is_success, 'Request should succeed' );
+my $response = request POST '/login', [ username => 'student', password => 'mypass' ];
+
+ok( $response->is_success, 'Logged in' );
+
+my $mech = Test::WWW::Mechanize::Catalyst->new(catalyst_app => 'SIMS');
+
+$mech->submit_form
+(
+form_number => '0',
+fields =>
+{
+ username => 'student', password => 'mypass'
+}
+);
done_testing();

0 comments on commit a902934

Please sign in to comment.