Sha256: 4426cf0022f17b20e9b01dba08c890f938fcd7acc5c4f2efa849fb4a523d49d2
Contents?: true
Size: 596 Bytes
Versions: 4
Compression:
Stored size: 596 Bytes
Contents
require './spec_env.rb' describe "When getting the configured sites" do before(:all) do configure do |cfg| @sites = cfg.get_sites end end it "at least one item should be returned" do @sites.size.should > 1 end end describe "When adding a new site" do before(:all) do configure do |cfg| @sites = cfg.get_sites @site = @sites.add { |s| s.name = generate_random_name } end end it "the site should be created" do @site.should_not be_nil end it "the site should have the highest id" do @site.id.should == @sites.size end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
inetmgr-0.6.0 | spec/site_spec.rb |
inetmgr-0.5.0 | spec/site_spec.rb |
inetmgr-0.4.0 | spec/site_spec.rb |
inetmgr-0.3.0-mswin32 | spec/site_spec.rb |