test/buildmaster/site/tc_templatelets.rb in BuildMaster-1.0.9 vs test/buildmaster/site/tc_templatelets.rb in BuildMaster-1.1.9
- old
+ new
@@ -7,30 +7,30 @@
require 'rexml/element'
require 'spec'
module BuildMaster
-context 'element class alternation' do
+describe 'element class alternation' do
include HelperMethods
- specify 'get attribute value' do
+ it 'get attribute value' do
content = <<CONTENT
<root>
<element name="value"/>
</root>
CONTENT
element = create_template_element(content, 'root/element')
element.attribute_value('name').should == 'value'
end
- specify 'raise template error if value is not there' do
+ it 'raise template error if value is not there' do
content = <<CONTENT
<root>
<element/>
</root>
CONTENT
element = create_template_element(content, 'root/element')
- Proc.new{element.attribute_value!('name')}.should_raise TemplateError
+ Proc.new{element.attribute_value!('name')}.should raise_error(TemplateError)
end
end
end
\ No newline at end of file