~bkerensa/ubuntu/raring/puppet/new-upstream-release

« back to all changes in this revision

Viewing changes to spec/unit/provider/cisco_spec.rb

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2011-07-25 01:00:37 UTC
  • mfrom: (1.1.24 upstream) (3.1.25 sid)
  • Revision ID: james.westby@ubuntu.com-20110725010037-875vuxs10eboqgw3
Tags: 2.7.1-1ubuntu1
* Merge from debian unstable.  Remaining changes:
  - debian/puppetmaster-passenger.postinst: Use cacrl instead of hostcrl to
    set the location of the CRL in apache2 configuration. Fix apache2
    configuration on upgrade as well (LP: #641001)
  - move all puppet dependencies to puppet-common since all the code
    actually located in puppet-common.
  - move libagueas from a recommend to a dependency.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env ruby
 
2
 
 
3
require File.dirname(__FILE__) + '/../../spec_helper'
 
4
 
 
5
require 'puppet/provider/cisco'
 
6
 
 
7
describe Puppet::Provider::Cisco do
 
8
  it "should implement a device class method" do
 
9
    Puppet::Provider::Cisco.should respond_to(:device)
 
10
  end
 
11
 
 
12
  it "should create a cisco device instance" do
 
13
    Puppet::Util::NetworkDevice::Cisco::Device.expects(:new).returns :device
 
14
    Puppet::Provider::Cisco.device(:url).should == :device
 
15
  end
 
16
end
 
 
b'\\ No newline at end of file'