spec/integration/riak/test_server_spec.rb in riak-client-1.0.0.beta vs spec/integration/riak/test_server_spec.rb in riak-client-1.0.0

- old
+ new

@@ -10,12 +10,13 @@ subject.env[:riak_kv][:add_paths].should include(erl_src) app_config.should match(/\{add_paths, \[.*#{erl_src.inspect}.*\]\}/) end it "should use the KV test backend" do - subject.kv_backend.should == :riak_kv_test_backend - subject.env[:riak_kv][:storage_backend].should == :riak_kv_test_backend - app_config.should include("{storage_backend, riak_kv_test_backend}") + backend = subject.version < "1.0.0" ? :riak_kv_test014_backend : :riak_kv_test_backend + subject.kv_backend.should == backend + subject.env[:riak_kv][:storage_backend].should == backend + app_config.should include("{storage_backend, #{backend}}") end it "should use the Search test backend" do subject.search_backend.should == :riak_search_test_backend subject.env[:riak_search][:search_backend].should == :riak_search_test_backend