ruby-avm-library/spec/avm/image_spec.rb

25 lines
508 B
Ruby
Raw Normal View History

2011-03-07 17:39:47 +00:00
require 'spec_helper'
require 'avm/image'
describe AVM::Image do
let(:image) { self.class.describes.new }
subject { image }
describe '#initialize' do
it { should be_a_kind_of(AVM::Image) }
its(:creator) { should be_a_kind_of(AVM::Creator) }
end
2011-03-09 15:14:31 +00:00
describe '#to_xml' do
let(:xml) { image.to_xml }
context 'nothing in it' do
subject { xml.at_xpath('//rdf:RDF').should_not be_nil }
subject { xml.search('//rdf:RDF/rdf:Description').should be_empty }
end
end
2011-03-07 17:39:47 +00:00
end