Sha256: 39d2902f9b111edf81fcfad74d1c4510a1806d30415e47d839e8a64d7aa3d85d

Contents?: true

Size: 1.04 KB

Versions: 19

Compression:

Stored size: 1.04 KB

Contents

#!/usr/bin/env ruby

require File.dirname(__FILE__) + '/../../spec_helper'
require 'puppet/file_serving/mount'

describe Puppet::FileServing::Mount do
  it "should use 'mount[$name]' as its string form" do
    Puppet::FileServing::Mount.new("foo").to_s.should == "mount[foo]"
  end
end

describe Puppet::FileServing::Mount, " when initializing" do
  it "should fail on non-alphanumeric name" do
    proc { Puppet::FileServing::Mount.new("non alpha") }.should raise_error(ArgumentError)
  end

  it "should allow dashes in its name" do
    Puppet::FileServing::Mount.new("non-alpha").name.should == "non-alpha"
  end
end

describe Puppet::FileServing::Mount, " when finding files" do
  it "should fail" do
    lambda { Puppet::FileServing::Mount.new("test").find("foo", :one => "two") }.should raise_error(NotImplementedError)
  end
end

describe Puppet::FileServing::Mount, " when searching for files" do
  it "should fail" do
    lambda { Puppet::FileServing::Mount.new("test").search("foo", :one => "two") }.should raise_error(NotImplementedError)
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
puppet-2.6.18 spec/unit/file_serving/mount_spec.rb
puppet-2.6.17 spec/unit/file_serving/mount_spec.rb
puppet-2.6.16 spec/unit/file_serving/mount_spec.rb
puppet-2.6.15 spec/unit/file_serving/mount_spec.rb
puppet-2.6.14 spec/unit/file_serving/mount_spec.rb
puppet-2.6.13 spec/unit/file_serving/mount_spec.rb
puppet-2.6.12 spec/unit/file_serving/mount_spec.rb
puppet-2.6.11 spec/unit/file_serving/mount_spec.rb
puppet-2.6.10 spec/unit/file_serving/mount_spec.rb
puppet-2.6.9 spec/unit/file_serving/mount_spec.rb
puppet-2.6.8 spec/unit/file_serving/mount_spec.rb
puppet-2.6.7 spec/unit/file_serving/mount_spec.rb
puppet-2.6.6 spec/unit/file_serving/mount_spec.rb
puppet-2.6.5 spec/unit/file_serving/mount_spec.rb
puppet-2.6.4 spec/unit/file_serving/mount_spec.rb
puppet-2.6.3 spec/unit/file_serving/mount_spec.rb
puppet-2.6.2 spec/unit/file_serving/mount_spec.rb
puppet-2.6.1 spec/unit/file_serving/mount_spec.rb
puppet-2.6.0 spec/unit/file_serving/mount_spec.rb