File: cisco_spec.rb

package info (click to toggle)
puppet 5.5.22-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 21,316 kB
  • sloc: ruby: 254,925; sh: 1,608; xml: 219; makefile: 153; sql: 103
file content (14 lines) | stat: -rw-r--r-- 421 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
require 'spec_helper'

require 'puppet/provider/cisco'

describe Puppet::Provider::Cisco do
  it "should implement a device class method" do
    expect(Puppet::Provider::Cisco).to respond_to(:device)
  end

  it "should create a cisco device instance" do
    expect(Puppet::Util::NetworkDevice::Cisco::Device).to receive(:new).and_return(:device)
    expect(Puppet::Provider::Cisco.device(:url)).to eq(:device)
  end
end