spec/integration/riak/node_spec.rb in riak-client-1.0.2 vs spec/integration/riak/node_spec.rb in riak-client-1.0.3
- old
+ new
@@ -18,9 +18,25 @@
its(:base_dir) { should be_nil }
its(:version) { should be_nil }
end
end
+ context "when the source control script is a symlink" do
+ let(:symdir) { Pathname.new(".symlinkriak") }
+ let(:sourcedir) { Pathname.new(test_server_config['source']) }
+ let(:control_script){ (sourcedir + 'riaksearch').exist? ? 'riaksearch' : 'riak' }
+
+ subject { described_class.new(:root => ".ripplenode", :source => symdir) }
+
+ before do
+ symdir.mkpath
+ (symdir + control_script).make_symlink(sourcedir + control_script)
+ end
+ after { symdir.rmtree }
+
+ its(:source){ should == sourcedir }
+ end
+
context "creation" do
before { subject.create }
after { subject.destroy }
describe "generating the manifest" do