spec/eader_spec.rb in eader-0.0.1 vs spec/eader_spec.rb in eader-0.0.2
- old
+ new
@@ -1,16 +1,20 @@
require "spec_helper"
describe Eader do
let!(:e) { Eader::Document.new('./spec/support/test.xml') }
+ let(:i) { Eader::Document.new(ENV['REMOTE_URL']) }
let(:item) { e.items.first }
- it "opens the xml" do
- e.content.should include('<ead>')
- end
-
it "returns dsc levels" do
e.should have(1).dsc_levels
+
+ # checking that remote url works
+ i.should have(4434).dsc_levels
+ end
+
+ it "returns the items" do
+ e.should have(1).items
end
it "returns item unitids" do
item.unitid.should == 'MR-0002'
end