```ruby
require 'spec_helper'

describe 'bitlbee' do
  let(:facts) do
    {
      :boxen_home => '/opt/boxen',
      :boxen_user => 'testuser',
    }
  end
  it { should include_class('bitlbee::config') }
  it { should contain_package('bitlbee').with_provider('homebrew') }
  it { should contain_file('/Library/LaunchDaemons/bitlbee.plist').with( 'group' => 'wheel', 'owner' => 'root') }
  it { should contain_file('/Library/LaunchDaemons/bitlbee.plist').with_content(/<string>-p<\/string>\s*<string>6667<\/string>/) }
  it { should contain_file("#{facts[:boxen_home]}/config/bitlbee").with('ensure' => 'directory') }
  it { should contain_file("#{facts[:boxen_home]}/log/bitlbee").with('ensure' => 'directory') }
  it { should contain_service('bitlbee').with(:ensure => 'running') }
  end
```

Add spec for UserName in bitlbee.plist.
user
```ruby
require 'spec_helper'

describe 'bitlbee' do
  let(:facts) do
    {
      :boxen_home => '/opt/boxen',
      :boxen_user => 'testuser',
      :luser => 'goober',
    }
  end
  it { should include_class('bitlbee::config') }
  it { should contain_package('bitlbee').with_provider('homebrew') }
  it { should contain_file('/Library/LaunchDaemons/bitlbee.plist').with( 'group' => 'wheel', 'owner' => 'root') }
  it { should contain_file('/Library/LaunchDaemons/bitlbee.plist').with_content(/<string>-p<\/string>\s*<string>6667<\/string>/) }
  it { should contain_file('/Library/LaunchDaemons/bitlbee.plist').with_content(/<key>UserName<\/key>\s*<string>#{facts[:luser]}<\/string>/) }
  it { should contain_file("#{facts[:boxen_home]}/config/bitlbee").with('ensure' => 'directory') }
  it { should contain_file("#{facts[:boxen_home]}/log/bitlbee").with('ensure' => 'directory') }
  it { should contain_service('bitlbee').with(:ensure => 'running') }
  end
```
assistant