spec/csl/style_spec.rb in csl-1.0.0.pre1 vs spec/csl/style_spec.rb in csl-1.0.0.pre2
- old
+ new
@@ -1,18 +1,20 @@
require 'spec_helper'
module CSL
describe Style do
- it { should be }
-
it 'has a 1.x version by default' do
Style.new[:version].should match(/1\.\d+(\.\d+)?/)
end
describe '#to_xml' do
it 'returns an empty style' do
Style.new.to_xml.should match(/<style[^>]*\/>/)
+ end
+
+ it 'supports round-trip for apa style' do
+ Style.parse(Style.load(:apa).to_xml).should be_a(Style)
end
end
end
end