rubyuw 0.99.6 → 0.99.7
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/rubyuw/curriculum.rb +2 -1
- data/rubyuw.gemspec +1 -1
- data/test/mocked/curriculum_test.rb +7 -0
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.99.
|
1
|
+
0.99.7
|
data/lib/rubyuw/curriculum.rb
CHANGED
data/rubyuw.gemspec
CHANGED
@@ -241,6 +241,13 @@ class CurriculumTest < Test::Unit::TestCase
|
|
241
241
|
end
|
242
242
|
end
|
243
243
|
|
244
|
+
should "contain unformatted text as well" do
|
245
|
+
node = @page.search("//table[@bgcolor=\"#99ccff\"]//following-sibling::table")[0]
|
246
|
+
|
247
|
+
returned = RubyUW::Curriculum.extract_course_listing(node)
|
248
|
+
assert !returned[:unformatted_entry].empty?
|
249
|
+
end
|
250
|
+
|
244
251
|
should "raise an exception if the listing does not match" do
|
245
252
|
pre_node = mock('pre_node')
|
246
253
|
pre_node.expects(:inner_text).once.returns("I don't match")
|