Skip to content

Commit

Permalink
Update test_server_spec.rb for 1.2 changes, which include 2I/test-cap…
Browse files Browse the repository at this point in the history
…able memory backend.
  • Loading branch information
seancribbs committed Jun 14, 2012
1 parent 7146d04 commit 693ad8e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion spec/integration/riak/test_server_spec.rb
Expand Up @@ -12,7 +12,13 @@
end

it "should use the KV test backend" do
backend = subject.version < "1.0.0" ? :riak_kv_test014_backend : :riak_kv_test_backend
backend = if subject.version < "1.0.0"
:riak_kv_test014_backend
elsif subject.version < "1.2.0"
:riak_kv_test_backend
else
:riak_kv_memory_backend
end
subject.kv_backend.should == backend
subject.env[:riak_kv][:storage_backend].should == backend
app_config.should include("{storage_backend, #{backend}}")
Expand Down

0 comments on commit 693ad8e

Please sign in to comment.