Sha256: ba5554ac64d41ac0a4353b8640f7640de18f6e1686d1b8cf2ae09296ae03ba94

Contents?: true

Size: 584 Bytes

Versions: 1

Compression:

Stored size: 584 Bytes

Contents

require 'spec_env'

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 > 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

1 entries across 1 versions & 1 rubygems

Version Path
inetmgr-0.2.0-mswin32 spec/site_spec.rb