newer pg module
[mirror/dsa-puppet.git] / 3rdparty / modules / postgresql / spec / unit / puppet / type / postgresql_replication_slot_spec.rb
diff --git a/3rdparty/modules/postgresql/spec/unit/puppet/type/postgresql_replication_slot_spec.rb b/3rdparty/modules/postgresql/spec/unit/puppet/type/postgresql_replication_slot_spec.rb
new file mode 100644 (file)
index 0000000..0d7c668
--- /dev/null
@@ -0,0 +1,11 @@
+require 'spec_helper'
+
+describe Puppet::Type.type(:postgresql_replication_slot) do
+  subject do
+    Puppet::Type.type(:postgresql_psql).new({:name => 'standby'})
+  end
+
+  it 'should have a name parameter' do
+    expect(subject[:name]).to eq 'standby'
+  end
+end