spec/requests/template_request_spec.rb in rubix-0.4.0 vs spec/requests/template_request_spec.rb in rubix-0.4.1
- old
+ new
@@ -20,10 +20,15 @@
it "can be created" do
template = Rubix::Template.new(:name => 'rubix_spec_template_1', :host_groups => [@host_group_1])
template.save.should be_true
end
+
+ it "can be imported" do
+ Rubix::Template.import(File.new(data_path('test_template.xml')))
+ Rubix::Template.find(:name => 'test').should_not be_nil
+ end
end
describe "when existing" do
@@ -43,10 +48,6 @@
Rubix::Template.find(:name => 'rubix_spec_template_1').should be_nil
end
end
- it "should be able to import and export a template" do
- pending "Learning how to import/export XML via the API"
- end
-
end