rubyuw 0.99.6 → 0.99.7
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/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")
|