spec/unit/validation_spec.rb in om-1.6.0 vs spec/unit/validation_spec.rb in om-1.6.1
- old
+ new
@@ -1,8 +1,6 @@
-require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
-require "nokogiri"
-require "om"
+require 'spec_helper'
describe "OM::XML::Validation" do
before(:all) do
class ValidationTest
@@ -77,6 +75,6 @@
it "should raise an error if file retrieval fails" do
pending "no internet connection"
lambda {ValidationTest.send(:file_from_url, "http://fedora-commons.org/nonexistent_file")}.should raise_error(RuntimeError, "Could not retrieve file from http://fedora-commons.org/nonexistent_file. Error: 404 Not Found")
end
end
-end
\ No newline at end of file
+end