require 'spec_helper'

describe Vim::AddonManager::Addon do

  it 'should build legacy addon objects if files atribute is specified' do
    addon('foo').should be_a(Vim::AddonManager::Addon::Legacy)
  end

  it 'should build new style addon objects if files attribute is not specified' do
    addon('newstyle').should be_a(Vim::AddonManager::Addon::Directory)
  end

end
