Sha256: bf4267cb64d458970d9c96bfac24dc3ea935d76aa73ce60beb32a6098d970f24

Contents?: true

Size: 1 KB

Versions: 35

Compression:

Stored size: 1 KB

Contents

#!/usr/bin/env rspec
require '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

35 entries across 35 versions & 3 rubygems

Version Path
puppet-2.7.26 spec/unit/file_serving/mount_spec.rb
puppet-2.7.25 spec/unit/file_serving/mount_spec.rb
puppet-2.7.24 spec/unit/file_serving/mount_spec.rb
puppet-2.7.23 spec/unit/file_serving/mount_spec.rb
puppet-2.7.22 spec/unit/file_serving/mount_spec.rb
puppet-2.7.21 spec/unit/file_serving/mount_spec.rb
puppet-2.7.20 spec/unit/file_serving/mount_spec.rb
puppet-2.7.20.rc1 spec/unit/file_serving/mount_spec.rb
librarian-puppet-0.9.4 vendor/gems/ruby/1.8/gems/puppet-2.7.18/spec/unit/file_serving/mount_spec.rb
puppet-2.7.19 spec/unit/file_serving/mount_spec.rb
supply_drop-0.11.0 examples/vendored-puppet/vendor/puppet-2.7.8/spec/unit/file_serving/mount_spec.rb
librarian-puppet-0.9.3 vendor/gems/ruby/1.8/gems/puppet-2.7.18/spec/unit/file_serving/mount_spec.rb
supply_drop-0.10.2 examples/vendored-puppet/vendor/puppet-2.7.8/spec/unit/file_serving/mount_spec.rb
puppet-2.7.18 spec/unit/file_serving/mount_spec.rb
supply_drop-0.10.1 examples/vendored-puppet/vendor/puppet-2.7.8/spec/unit/file_serving/mount_spec.rb
supply_drop-0.10.0 examples/vendored-puppet/vendor/puppet-2.7.8/spec/unit/file_serving/mount_spec.rb
puppet-2.7.17 spec/unit/file_serving/mount_spec.rb
puppet-2.7.16 spec/unit/file_serving/mount_spec.rb
puppet-2.7.14 spec/unit/file_serving/mount_spec.rb
puppet-2.7.13 spec/unit/file_serving/mount_spec.rb