Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
describe "Processing XML file" do
it "opens the file correctly" do
file_path = "/some/path/to.xml"
xml = "<xml>bleh</xml>"
stub_file = stub(:read).and_return(xml)
File.stub(:open).and_return(stub_file)
Parse.should_receive(:process_xml).with(xml)
Parser.process(file_path)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.