Hi, everyone.
Here's what I have right now:
it "can accept a fedora url as an argument and intialize a connection to fedora" do
fedora_config = File.join(File.dirname(__FILE__), "/../config/fedora.yml")
hfo = HypatiaFileObject.new(:fedora_config => fedora_config)
Fedora::Repository.instance.fedora_version.should eql("3.4.2")
end
I'm assuming that it wouldn't be able to get the fedora version number if it didn't have a connection. However, this is a little brittle, as the test will break whenever hydra-jetty upgrades its version of fedora. Not a huge deal, as that won't happen a lot, but I'm wondering if there's a better pattern I should be using.
Thanks in advance,
Bess