Sha256: 76906da6e6d88cb13b025f7be0eac5a50730d3c48caadb4c7c828aed8e907fa4

Contents?: true

Size: 487 Bytes

Versions: 1

Compression:

Stored size: 487 Bytes

Contents

require 'kit'

describe Kit do

	MY_KIT_PATH = "kits/my_kit/"

	before :all do
		@kit = Kit.new MY_KIT_PATH
	end

	it "can create a new kit" do
		@kit.class.should == Kit
	end

	after :all do

		# Delete the sqlite3 database after running all tests
		config = YAML.load File.read MY_KIT_PATH + "config.yml"
		if config[:db_backend] == :sqlite3
			config[:db_config].each do |key, p|
				dir = File.dirname p
				f = MY_KIT_PATH + p if dir  == "."
				File.delete f
			end
		end
	end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kit-0.0.4 spec/my_kit_spec.rb