mitchellh-rubyuw 0.6.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/lib/myuw/sln.rb +4 -0
- data/rubyuw.gemspec +5 -2
- data/test/mocked/fixture_pages/sln_no_course_info.html +94 -0
- data/test/mocked/fixture_pages/sln_no_course_notes.html +94 -0
- data/test/mocked/fixture_pages/sln_no_enrollment_info.html +94 -0
- data/test/mocked/sln_test.rb +24 -0
- metadata +5 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.6.
|
1
|
+
0.6.1
|
data/lib/myuw/sln.rb
CHANGED
@@ -73,6 +73,7 @@ class MyUW
|
|
73
73
|
# current status page)
|
74
74
|
def get_course_info(page)
|
75
75
|
info_nodes = page.search("//table[@border=1 and @cellpadding=3]//tr[@rowspan=1]//td")
|
76
|
+
raise InvalidPageError.new(page, "Could not extract course info for SLN.") if info_nodes.empty?
|
76
77
|
|
77
78
|
data_order = [nil, :course, :section, :type, :credits, :title]
|
78
79
|
info_nodes.each_with_index do |node, i|
|
@@ -91,6 +92,7 @@ class MyUW
|
|
91
92
|
# as current enrollment, space available, etc.
|
92
93
|
def get_enrollment_info(page)
|
93
94
|
info_nodes = page.search("//table[@border=1 and @cellpadding=3]//tr[count(td)=5]//td")
|
95
|
+
raise InvalidPageError.new(page, "Could not extract enrollment info for SLN.") if info_nodes.empty?
|
94
96
|
|
95
97
|
data_order = [:current_enrollment, :limit_enrollment, :room_capacity, :space_available, :status]
|
96
98
|
info_nodes.each_with_index do |node, i|
|
@@ -108,6 +110,8 @@ class MyUW
|
|
108
110
|
# Gets the notes for a course
|
109
111
|
def get_course_notes(page)
|
110
112
|
info_nodes = page.search("//table[@border=1 and @cellpadding=3]//tr[count(td)=1]//preceding-sibling::tr[count(th)=1]//following-sibling::tr//td")
|
113
|
+
raise InvalidPageError.new(page, "Could not find course notes information.") if info_nodes.empty?
|
114
|
+
|
111
115
|
@data ||= {}
|
112
116
|
@data[:notes] = info_nodes[0].inner_text.strip
|
113
117
|
end
|
data/rubyuw.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{rubyuw}
|
5
|
-
s.version = "0.6.
|
5
|
+
s.version = "0.6.1"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Mitchell Hashimoto"]
|
9
|
-
s.date = %q{2009-06-
|
9
|
+
s.date = %q{2009-06-29}
|
10
10
|
s.description = %q{TODO}
|
11
11
|
s.email = %q{mitchell.hashimoto@gmail.com}
|
12
12
|
s.extra_rdoc_files = [
|
@@ -46,6 +46,9 @@ Gem::Specification.new do |s|
|
|
46
46
|
"test/mocked/fixture_pages/schedule_empty.html",
|
47
47
|
"test/mocked/fixture_pages/schedule_no_credit_row.html",
|
48
48
|
"test/mocked/fixture_pages/sln_does_not_exist.html",
|
49
|
+
"test/mocked/fixture_pages/sln_no_course_info.html",
|
50
|
+
"test/mocked/fixture_pages/sln_no_course_notes.html",
|
51
|
+
"test/mocked/fixture_pages/sln_no_enrollment_info.html",
|
49
52
|
"test/mocked/fixture_pages/sln_status.html",
|
50
53
|
"test/mocked/fixture_pages/welcome.html",
|
51
54
|
"test/mocked/myuw_test.rb",
|
@@ -0,0 +1,94 @@
|
|
1
|
+
<HTML>
|
2
|
+
<HEAD>
|
3
|
+
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
|
4
|
+
<TITLE>Current Section Status</TITLE>
|
5
|
+
<LINK REL="stylesheet" TYPE="text/css" HREF="https://www.washington.edu/home/home.css">
|
6
|
+
</HEAD>
|
7
|
+
<BODY>
|
8
|
+
|
9
|
+
<table border='0' cellpadding='0' cellspacing='0' width='100%' align='center'>
|
10
|
+
<tr>
|
11
|
+
<td width='100%' class='rpad'>
|
12
|
+
<a href='http://www.washington.edu/' target='_top'><img src='/sdb_library/images/uwlogo150p.gif' border='0' width='150' height='28' alt='University of Washington'></a>
|
13
|
+
</td>
|
14
|
+
<td rowspan='2' valign='bottom'>
|
15
|
+
|
16
|
+
<table border='0' cellpadding='0' cellspacing='0'>
|
17
|
+
<tr><td colspan='2' bgcolor='#666666'><img src='/sdb_library/images/1px_transparent.gif' height='1'></td></tr>
|
18
|
+
<tr>
|
19
|
+
<td bgcolor='#666666'><img src='/sdb_library/images/1px_transparent.gif' width='7' height='1'></td>
|
20
|
+
<td nowrap><span class='l1text'>
|
21
|
+
<a href='http://www.washington.edu/home/search.html' target='_top'>Search</A> |
|
22
|
+
<a href='http://www.washington.edu/home/directories.html' target='_top'>Directories</A> |
|
23
|
+
<a href='http://www.washington.edu/tools/' target='_top'>Reference Tools</A>
|
24
|
+
</span></td>
|
25
|
+
</tr>
|
26
|
+
</table>
|
27
|
+
|
28
|
+
</td>
|
29
|
+
</tr>
|
30
|
+
<tr>
|
31
|
+
<td bgcolor='#666666'><img src='/sdb_library/images/1px_transparent.gif' height='1'></td>
|
32
|
+
</tr>
|
33
|
+
</table>
|
34
|
+
<table border='0' cellpadding='0' cellspacing='0' width='100%'>
|
35
|
+
<tr>
|
36
|
+
<td bgcolor='#e6e6e6'><img src='/sdb_library/images/1px_transparent.gif' width='1' height='5'></TD>
|
37
|
+
</tr>
|
38
|
+
</table>
|
39
|
+
<table border='0' cellpadding='0' cellspacing='0' width='100%'>
|
40
|
+
<tr>
|
41
|
+
<td rowspan='2' nowrap><span class='l1text'>
|
42
|
+
<a href='http://www.washington.edu/' target='_top'>UW Home</A> > <a href='http://www.washington.edu/students/' target='_top'>Student Guide</A> > <a href='http://www.washington.edu/students/timeschd/' target='_top'>Time Schedule</A> > <a href='http://www.washington.edu/students/timeschd/AUT2009' target='_top'>Autumn 2009</A> > <a href='http://www.washington.edu/students/timeschd/AUT2009/phil ' target='_top'>PHILOSOPHY </A>
|
43
|
+
</span></td>
|
44
|
+
<td width='5' rowspan='3' bgcolor='#cccccc'><img src='/sdb_library/images/1px_transparent.gif' border='0' width='7' height='1'></td>
|
45
|
+
<td bgcolor='#cccccc' height='1'><img src='/sdb_library/images/1px_transparent.gif' border='0' width='1' height='1'></td>
|
46
|
+
</tr>
|
47
|
+
<tr>
|
48
|
+
<td width='100%'> </td>
|
49
|
+
</tr>
|
50
|
+
<tr>
|
51
|
+
<td bgcolor='#cccccc'><img src='/sdb_library/images/1px_transparent.gif' border='0' width='1' height='1'></td>
|
52
|
+
</tr>
|
53
|
+
</table>
|
54
|
+
<H1>Current Section Status - Autumn Quarter 2009</H1>
|
55
|
+
<P><!--
|
56
|
+
<TABLE BORDER=1 CELLPADDING=3><TR BGCOLOR="#d0d0d0"><TH>SLN</TH><TH>Course</TH><TH>Section</TH><TH>Type</TH><TH>Credits</TH><TH>Title</TH><TH>General Education<BR>and Basic Skills<BR>Requirements</TH></TR><TR ROWSPAN=1><TD><TT>17237</TT></TD><TD><TT>PHIL 120</TT></TD><TD ALIGN="center"><TT>AE </TT></TD><TD ALIGN="center"><TT>QZ</TT></TD><TD ALIGN="center"><TT> </TT></TD><TD><TT><A HREF="http://www.washington.edu/students/crscat/phil.html#phil120" TARGET="_phil120">INTRO TO LOGIC </A></TT></TD><TD><TT> </TT></TD></TR><TR><TD COLSPAN=7><TT><A HREF="http://sdb.admin.washington.edu/textbooks/query.asp?qtr=Autumn&sln1=17237" TARGET="_tb">Display Textbooks</A></TT></TD></TR></TABLE><P><TABLE BORDER=1 CELLPADDING=3><TR BGCOLOR="#d0d0d0"><TH>Current<BR>Enrollment</TH><TH>Limit</TH><TH>Room<BR>Capacity</TH><TH>Space<BR>Available</TH><TH>Status</TH></B></TR><TR><TD ALIGN="center"><TT> 25</TT></TD><TD ALIGN="center"><TT> 25</TT></TD><TD ALIGN="center"><TT> 40</TT></TD><TD ALIGN="center"><TT> </TT></TD><TD ALIGN="center"><TT><B>** Closed **</B></TT></TD></TR></TABLE>
|
57
|
+
-->
|
58
|
+
<P><TABLE BORDER=1 CELLPADDING=3><TR BGCOLOR="#d0d0d0"><TH COLSPAN=4>Meetings</TH></TR>
|
59
|
+
<TR BGCOLOR="#d0d0d0"><TH>Days</TH><TH>Time</TH><TH>Location</TH><TH>Instructor</TH></TR>
|
60
|
+
<TR><TD NOWRAP VALIGN="top"><TT>TTh</TT></TD>
|
61
|
+
<TD NOWRAP VALIGN="top"><TT>10:30-11:20</TT></TD>
|
62
|
+
<TD NOWRAP VALIGN="top"><TT><A HREF="http://www.washington.edu/students/maps/map.cgi?DEN" TARGET="_DEN">DEN</A> 212</TT></TD>
|
63
|
+
<TD NOWRAP><TT> </TT></TD>
|
64
|
+
</TR></TABLE>
|
65
|
+
<P><TABLE BORDER=1 CELLPADDING=3><TR BGCOLOR="#d0d0d0"><TH>Notes</TH></TR><TR><TD><TT>Quiz Section </TT></TD></TR></TABLE>
|
66
|
+
<P></P>
|
67
|
+
<table border='0' cellpadding='0' cellspacing='0' align='center' width='100%'>
|
68
|
+
<tr>
|
69
|
+
<td rowspan='2'>
|
70
|
+
<a href='http://www.washington.edu/'><img src='/sdb_library/images/footersealW.gif' border='0' height='48' width='48' hspace='5' vspace='7' alt='UW Seal'></a>
|
71
|
+
</td>
|
72
|
+
<td rowspan='3' bgcolor='#666666' width='5'><img src='/sdb_library/images/1px_transparent.gif' width='7' height='1'></td>
|
73
|
+
<td colspan='2' bgcolor='#666666' height='1'><img src='/sdb_library/images/1px_transparent.gif' width='1' height='1'></td>
|
74
|
+
</tr><tr>
|
75
|
+
<td width='100%'>
|
76
|
+
<table border='0' width='100%'>
|
77
|
+
<tr>
|
78
|
+
<td valign='top'><address>
|
79
|
+
Office of the Registrar<br>
|
80
|
+
registrar@u.washington.edu<br>
|
81
|
+
June 27, 2009
|
82
|
+
</address>
|
83
|
+
</td>
|
84
|
+
</tr>
|
85
|
+
</table>
|
86
|
+
</td>
|
87
|
+
</tr><tr height='1'>
|
88
|
+
<td bgcolor='#666666'><img src='/sdb_library/images/1px_transparent.gif' width='1' height='1'></td>
|
89
|
+
</tr>
|
90
|
+
</table>
|
91
|
+
|
92
|
+
|
93
|
+
</BODY>
|
94
|
+
</HTML>
|
@@ -0,0 +1,94 @@
|
|
1
|
+
<HTML>
|
2
|
+
<HEAD>
|
3
|
+
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
|
4
|
+
<TITLE>Current Section Status</TITLE>
|
5
|
+
<LINK REL="stylesheet" TYPE="text/css" HREF="https://www.washington.edu/home/home.css">
|
6
|
+
</HEAD>
|
7
|
+
<BODY>
|
8
|
+
|
9
|
+
<table border='0' cellpadding='0' cellspacing='0' width='100%' align='center'>
|
10
|
+
<tr>
|
11
|
+
<td width='100%' class='rpad'>
|
12
|
+
<a href='http://www.washington.edu/' target='_top'><img src='/sdb_library/images/uwlogo150p.gif' border='0' width='150' height='28' alt='University of Washington'></a>
|
13
|
+
</td>
|
14
|
+
<td rowspan='2' valign='bottom'>
|
15
|
+
|
16
|
+
<table border='0' cellpadding='0' cellspacing='0'>
|
17
|
+
<tr><td colspan='2' bgcolor='#666666'><img src='/sdb_library/images/1px_transparent.gif' height='1'></td></tr>
|
18
|
+
<tr>
|
19
|
+
<td bgcolor='#666666'><img src='/sdb_library/images/1px_transparent.gif' width='7' height='1'></td>
|
20
|
+
<td nowrap><span class='l1text'>
|
21
|
+
<a href='http://www.washington.edu/home/search.html' target='_top'>Search</A> |
|
22
|
+
<a href='http://www.washington.edu/home/directories.html' target='_top'>Directories</A> |
|
23
|
+
<a href='http://www.washington.edu/tools/' target='_top'>Reference Tools</A>
|
24
|
+
</span></td>
|
25
|
+
</tr>
|
26
|
+
</table>
|
27
|
+
|
28
|
+
</td>
|
29
|
+
</tr>
|
30
|
+
<tr>
|
31
|
+
<td bgcolor='#666666'><img src='/sdb_library/images/1px_transparent.gif' height='1'></td>
|
32
|
+
</tr>
|
33
|
+
</table>
|
34
|
+
<table border='0' cellpadding='0' cellspacing='0' width='100%'>
|
35
|
+
<tr>
|
36
|
+
<td bgcolor='#e6e6e6'><img src='/sdb_library/images/1px_transparent.gif' width='1' height='5'></TD>
|
37
|
+
</tr>
|
38
|
+
</table>
|
39
|
+
<table border='0' cellpadding='0' cellspacing='0' width='100%'>
|
40
|
+
<tr>
|
41
|
+
<td rowspan='2' nowrap><span class='l1text'>
|
42
|
+
<a href='http://www.washington.edu/' target='_top'>UW Home</A> > <a href='http://www.washington.edu/students/' target='_top'>Student Guide</A> > <a href='http://www.washington.edu/students/timeschd/' target='_top'>Time Schedule</A> > <a href='http://www.washington.edu/students/timeschd/AUT2009' target='_top'>Autumn 2009</A> > <a href='http://www.washington.edu/students/timeschd/AUT2009/phil ' target='_top'>PHILOSOPHY </A>
|
43
|
+
</span></td>
|
44
|
+
<td width='5' rowspan='3' bgcolor='#cccccc'><img src='/sdb_library/images/1px_transparent.gif' border='0' width='7' height='1'></td>
|
45
|
+
<td bgcolor='#cccccc' height='1'><img src='/sdb_library/images/1px_transparent.gif' border='0' width='1' height='1'></td>
|
46
|
+
</tr>
|
47
|
+
<tr>
|
48
|
+
<td width='100%'> </td>
|
49
|
+
</tr>
|
50
|
+
<tr>
|
51
|
+
<td bgcolor='#cccccc'><img src='/sdb_library/images/1px_transparent.gif' border='0' width='1' height='1'></td>
|
52
|
+
</tr>
|
53
|
+
</table>
|
54
|
+
<H1>Current Section Status - Autumn Quarter 2009</H1>
|
55
|
+
<P><TABLE BORDER=1 CELLPADDING=3><TR BGCOLOR="#d0d0d0"><TH>SLN</TH><TH>Course</TH><TH>Section</TH><TH>Type</TH><TH>Credits</TH><TH>Title</TH><TH>General Education<BR>and Basic Skills<BR>Requirements</TH></TR><TR ROWSPAN=1><TD><TT>17237</TT></TD><TD><TT>PHIL 120</TT></TD><TD ALIGN="center"><TT>AE </TT></TD><TD ALIGN="center"><TT>QZ</TT></TD><TD ALIGN="center"><TT> </TT></TD><TD><TT><A HREF="http://www.washington.edu/students/crscat/phil.html#phil120" TARGET="_phil120">INTRO TO LOGIC </A></TT></TD><TD><TT> </TT></TD></TR><TR><TD COLSPAN=7><TT><A HREF="http://sdb.admin.washington.edu/textbooks/query.asp?qtr=Autumn&sln1=17237" TARGET="_tb">Display Textbooks</A></TT></TD></TR></TABLE><P><TABLE BORDER=1 CELLPADDING=3><TR BGCOLOR="#d0d0d0"><TH>Current<BR>Enrollment</TH><TH>Limit</TH><TH>Room<BR>Capacity</TH><TH>Space<BR>Available</TH><TH>Status</TH></B></TR><TR><TD ALIGN="center"><TT> 25</TT></TD><TD ALIGN="center"><TT> 25</TT></TD><TD ALIGN="center"><TT> 40</TT></TD><TD ALIGN="center"><TT> </TT></TD><TD ALIGN="center"><TT><B>** Closed **</B></TT></TD></TR></TABLE>
|
56
|
+
<P><TABLE BORDER=1 CELLPADDING=3><TR BGCOLOR="#d0d0d0"><TH COLSPAN=4>Meetings</TH></TR>
|
57
|
+
<TR BGCOLOR="#d0d0d0"><TH>Days</TH><TH>Time</TH><TH>Location</TH><TH>Instructor</TH></TR>
|
58
|
+
<TR><TD NOWRAP VALIGN="top"><TT>TTh</TT></TD>
|
59
|
+
<TD NOWRAP VALIGN="top"><TT>10:30-11:20</TT></TD>
|
60
|
+
<TD NOWRAP VALIGN="top"><TT><A HREF="http://www.washington.edu/students/maps/map.cgi?DEN" TARGET="_DEN">DEN</A> 212</TT></TD>
|
61
|
+
<TD NOWRAP><TT> </TT></TD>
|
62
|
+
</TR></TABLE>
|
63
|
+
<P><!--
|
64
|
+
<TABLE BORDER=1 CELLPADDING=3><TR BGCOLOR="#d0d0d0"><TH>Notes</TH></TR><TR><TD><TT>Quiz Section </TT></TD></TR></TABLE>
|
65
|
+
-->
|
66
|
+
<P></P>
|
67
|
+
<table border='0' cellpadding='0' cellspacing='0' align='center' width='100%'>
|
68
|
+
<tr>
|
69
|
+
<td rowspan='2'>
|
70
|
+
<a href='http://www.washington.edu/'><img src='/sdb_library/images/footersealW.gif' border='0' height='48' width='48' hspace='5' vspace='7' alt='UW Seal'></a>
|
71
|
+
</td>
|
72
|
+
<td rowspan='3' bgcolor='#666666' width='5'><img src='/sdb_library/images/1px_transparent.gif' width='7' height='1'></td>
|
73
|
+
<td colspan='2' bgcolor='#666666' height='1'><img src='/sdb_library/images/1px_transparent.gif' width='1' height='1'></td>
|
74
|
+
</tr><tr>
|
75
|
+
<td width='100%'>
|
76
|
+
<table border='0' width='100%'>
|
77
|
+
<tr>
|
78
|
+
<td valign='top'><address>
|
79
|
+
Office of the Registrar<br>
|
80
|
+
registrar@u.washington.edu<br>
|
81
|
+
June 27, 2009
|
82
|
+
</address>
|
83
|
+
</td>
|
84
|
+
</tr>
|
85
|
+
</table>
|
86
|
+
</td>
|
87
|
+
</tr><tr height='1'>
|
88
|
+
<td bgcolor='#666666'><img src='/sdb_library/images/1px_transparent.gif' width='1' height='1'></td>
|
89
|
+
</tr>
|
90
|
+
</table>
|
91
|
+
|
92
|
+
|
93
|
+
</BODY>
|
94
|
+
</HTML>
|
@@ -0,0 +1,94 @@
|
|
1
|
+
<HTML>
|
2
|
+
<HEAD>
|
3
|
+
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
|
4
|
+
<TITLE>Current Section Status</TITLE>
|
5
|
+
<LINK REL="stylesheet" TYPE="text/css" HREF="https://www.washington.edu/home/home.css">
|
6
|
+
</HEAD>
|
7
|
+
<BODY>
|
8
|
+
|
9
|
+
<table border='0' cellpadding='0' cellspacing='0' width='100%' align='center'>
|
10
|
+
<tr>
|
11
|
+
<td width='100%' class='rpad'>
|
12
|
+
<a href='http://www.washington.edu/' target='_top'><img src='/sdb_library/images/uwlogo150p.gif' border='0' width='150' height='28' alt='University of Washington'></a>
|
13
|
+
</td>
|
14
|
+
<td rowspan='2' valign='bottom'>
|
15
|
+
|
16
|
+
<table border='0' cellpadding='0' cellspacing='0'>
|
17
|
+
<tr><td colspan='2' bgcolor='#666666'><img src='/sdb_library/images/1px_transparent.gif' height='1'></td></tr>
|
18
|
+
<tr>
|
19
|
+
<td bgcolor='#666666'><img src='/sdb_library/images/1px_transparent.gif' width='7' height='1'></td>
|
20
|
+
<td nowrap><span class='l1text'>
|
21
|
+
<a href='http://www.washington.edu/home/search.html' target='_top'>Search</A> |
|
22
|
+
<a href='http://www.washington.edu/home/directories.html' target='_top'>Directories</A> |
|
23
|
+
<a href='http://www.washington.edu/tools/' target='_top'>Reference Tools</A>
|
24
|
+
</span></td>
|
25
|
+
</tr>
|
26
|
+
</table>
|
27
|
+
|
28
|
+
</td>
|
29
|
+
</tr>
|
30
|
+
<tr>
|
31
|
+
<td bgcolor='#666666'><img src='/sdb_library/images/1px_transparent.gif' height='1'></td>
|
32
|
+
</tr>
|
33
|
+
</table>
|
34
|
+
<table border='0' cellpadding='0' cellspacing='0' width='100%'>
|
35
|
+
<tr>
|
36
|
+
<td bgcolor='#e6e6e6'><img src='/sdb_library/images/1px_transparent.gif' width='1' height='5'></TD>
|
37
|
+
</tr>
|
38
|
+
</table>
|
39
|
+
<table border='0' cellpadding='0' cellspacing='0' width='100%'>
|
40
|
+
<tr>
|
41
|
+
<td rowspan='2' nowrap><span class='l1text'>
|
42
|
+
<a href='http://www.washington.edu/' target='_top'>UW Home</A> > <a href='http://www.washington.edu/students/' target='_top'>Student Guide</A> > <a href='http://www.washington.edu/students/timeschd/' target='_top'>Time Schedule</A> > <a href='http://www.washington.edu/students/timeschd/AUT2009' target='_top'>Autumn 2009</A> > <a href='http://www.washington.edu/students/timeschd/AUT2009/phil ' target='_top'>PHILOSOPHY </A>
|
43
|
+
</span></td>
|
44
|
+
<td width='5' rowspan='3' bgcolor='#cccccc'><img src='/sdb_library/images/1px_transparent.gif' border='0' width='7' height='1'></td>
|
45
|
+
<td bgcolor='#cccccc' height='1'><img src='/sdb_library/images/1px_transparent.gif' border='0' width='1' height='1'></td>
|
46
|
+
</tr>
|
47
|
+
<tr>
|
48
|
+
<td width='100%'> </td>
|
49
|
+
</tr>
|
50
|
+
<tr>
|
51
|
+
<td bgcolor='#cccccc'><img src='/sdb_library/images/1px_transparent.gif' border='0' width='1' height='1'></td>
|
52
|
+
</tr>
|
53
|
+
</table>
|
54
|
+
<H1>Current Section Status - Autumn Quarter 2009</H1>
|
55
|
+
<P><TABLE BORDER=1 CELLPADDING=3><TR BGCOLOR="#d0d0d0"><TH>SLN</TH><TH>Course</TH><TH>Section</TH><TH>Type</TH><TH>Credits</TH><TH>Title</TH><TH>General Education<BR>and Basic Skills<BR>Requirements</TH></TR><TR ROWSPAN=1><TD><TT>17237</TT></TD><TD><TT>PHIL 120</TT></TD><TD ALIGN="center"><TT>AE </TT></TD><TD ALIGN="center"><TT>QZ</TT></TD><TD ALIGN="center"><TT> </TT></TD><TD><TT><A HREF="http://www.washington.edu/students/crscat/phil.html#phil120" TARGET="_phil120">INTRO TO LOGIC </A></TT></TD><TD><TT> </TT></TD></TR><TR><TD COLSPAN=7><TT><A HREF="http://sdb.admin.washington.edu/textbooks/query.asp?qtr=Autumn&sln1=17237" TARGET="_tb">Display Textbooks</A></TT></TD></TR></TABLE><P><!--
|
56
|
+
<TABLE BORDER=1 CELLPADDING=3><TR BGCOLOR="#d0d0d0"><TH>Current<BR>Enrollment</TH><TH>Limit</TH><TH>Room<BR>Capacity</TH><TH>Space<BR>Available</TH><TH>Status</TH></B></TR><TR><TD ALIGN="center"><TT> 25</TT></TD><TD ALIGN="center"><TT> 25</TT></TD><TD ALIGN="center"><TT> 40</TT></TD><TD ALIGN="center"><TT> </TT></TD><TD ALIGN="center"><TT><B>** Closed **</B></TT></TD></TR></TABLE>
|
57
|
+
-->
|
58
|
+
<P><TABLE BORDER=1 CELLPADDING=3><TR BGCOLOR="#d0d0d0"><TH COLSPAN=4>Meetings</TH></TR>
|
59
|
+
<TR BGCOLOR="#d0d0d0"><TH>Days</TH><TH>Time</TH><TH>Location</TH><TH>Instructor</TH></TR>
|
60
|
+
<TR><TD NOWRAP VALIGN="top"><TT>TTh</TT></TD>
|
61
|
+
<TD NOWRAP VALIGN="top"><TT>10:30-11:20</TT></TD>
|
62
|
+
<TD NOWRAP VALIGN="top"><TT><A HREF="http://www.washington.edu/students/maps/map.cgi?DEN" TARGET="_DEN">DEN</A> 212</TT></TD>
|
63
|
+
<TD NOWRAP><TT> </TT></TD>
|
64
|
+
</TR></TABLE>
|
65
|
+
<P><TABLE BORDER=1 CELLPADDING=3><TR BGCOLOR="#d0d0d0"><TH>Notes</TH></TR><TR><TD><TT>Quiz Section </TT></TD></TR></TABLE>
|
66
|
+
<P></P>
|
67
|
+
<table border='0' cellpadding='0' cellspacing='0' align='center' width='100%'>
|
68
|
+
<tr>
|
69
|
+
<td rowspan='2'>
|
70
|
+
<a href='http://www.washington.edu/'><img src='/sdb_library/images/footersealW.gif' border='0' height='48' width='48' hspace='5' vspace='7' alt='UW Seal'></a>
|
71
|
+
</td>
|
72
|
+
<td rowspan='3' bgcolor='#666666' width='5'><img src='/sdb_library/images/1px_transparent.gif' width='7' height='1'></td>
|
73
|
+
<td colspan='2' bgcolor='#666666' height='1'><img src='/sdb_library/images/1px_transparent.gif' width='1' height='1'></td>
|
74
|
+
</tr><tr>
|
75
|
+
<td width='100%'>
|
76
|
+
<table border='0' width='100%'>
|
77
|
+
<tr>
|
78
|
+
<td valign='top'><address>
|
79
|
+
Office of the Registrar<br>
|
80
|
+
registrar@u.washington.edu<br>
|
81
|
+
June 27, 2009
|
82
|
+
</address>
|
83
|
+
</td>
|
84
|
+
</tr>
|
85
|
+
</table>
|
86
|
+
</td>
|
87
|
+
</tr><tr height='1'>
|
88
|
+
<td bgcolor='#666666'><img src='/sdb_library/images/1px_transparent.gif' width='1' height='1'></td>
|
89
|
+
</tr>
|
90
|
+
</table>
|
91
|
+
|
92
|
+
|
93
|
+
</BODY>
|
94
|
+
</HTML>
|
data/test/mocked/sln_test.rb
CHANGED
@@ -61,5 +61,29 @@ class MockedSlnTest < Test::Unit::TestCase
|
|
61
61
|
@sln.get_sln_page
|
62
62
|
end
|
63
63
|
end
|
64
|
+
|
65
|
+
should "raise an InvalidPageError if it can't find the course info" do
|
66
|
+
fixture_page = @browser.get(path_to_html("sln_no_course_info"))
|
67
|
+
|
68
|
+
assert_raise MyUW::InvalidPageError do
|
69
|
+
@sln.get_course_info(fixture_page)
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
should "raise an InvalidPageError if it can't find the enrollment info" do
|
74
|
+
fixture_page = @browser.get(path_to_html("sln_no_enrollment_info"))
|
75
|
+
|
76
|
+
assert_raise MyUW::InvalidPageError do
|
77
|
+
@sln.get_enrollment_info(fixture_page)
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
should "raise an InvalidPageError if it can't find the course notes" do
|
82
|
+
fixture_page = @browser.get(path_to_html("sln_no_course_notes"))
|
83
|
+
|
84
|
+
assert_raise MyUW::InvalidPageError do
|
85
|
+
@sln.get_course_notes(fixture_page)
|
86
|
+
end
|
87
|
+
end
|
64
88
|
end
|
65
89
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mitchellh-rubyuw
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mitchell Hashimoto
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-06-
|
12
|
+
date: 2009-06-29 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -64,6 +64,9 @@ files:
|
|
64
64
|
- test/mocked/fixture_pages/schedule_empty.html
|
65
65
|
- test/mocked/fixture_pages/schedule_no_credit_row.html
|
66
66
|
- test/mocked/fixture_pages/sln_does_not_exist.html
|
67
|
+
- test/mocked/fixture_pages/sln_no_course_info.html
|
68
|
+
- test/mocked/fixture_pages/sln_no_course_notes.html
|
69
|
+
- test/mocked/fixture_pages/sln_no_enrollment_info.html
|
67
70
|
- test/mocked/fixture_pages/sln_status.html
|
68
71
|
- test/mocked/fixture_pages/welcome.html
|
69
72
|
- test/mocked/myuw_test.rb
|