test/isbn_spec.rb in isbn-2.0.5 vs test/isbn_spec.rb in isbn-2.0.6

- old
+ new

@@ -58,6 +58,10 @@ ISBN.valid?("2900820472675").must_equal true ISBN.valid?("012781910X").must_equal true ISBN.valid?("9887401392").must_equal false ISBN.valid?("082047267").must_equal false end + + it "should get isbn from source string" do + ISBN.from_string("ISBN:978-83-7659-303-6\nmore of content").must_equal "978-83-7659-303-6" + end end \ No newline at end of file