Commit 661b630c2af7f5901198644a3c5a212b871fac5b
- Date: Wed Apr 30 08:10:07 +0000 2008
- Committer: Yurii Rashkovskii (yrashk@gmail.com)
- Author: Yurii Rashkovskii (yrashk@gmail.com)
- Commit SHA1: 661b630c2af7f5901198644a3c5a212b871fac5b
- Tree SHA1: 1a420475d63dda4bbe510cd19f86529168241467
Working pending config_spec example has been enabled
Commit diff
| |   |
| 134 | 134 | it "should use specified store if told so" do |
| 135 | 135 | StrokeDB.send!(:remove_const,'SomeFunnyStore') if defined?(SomeFunnyStore) |
| 136 | 136 | StrokeDB::SomeFunnyStore = Class.new(Store) |
| 137 | | pending("not that important now") do |
| 138 | | config = StrokeDB::Config.build :store => :some_funny, :base_path => @base_path |
| 139 | | config.stores[:default].should be_a_kind_of(SomeFunnyStore) |
| 140 | | end |
| 137 | config = StrokeDB::Config.build :store => :some_funny, :base_path => @base_path |
| 138 | config.stores[:default].should be_a_kind_of(SomeFunnyStore) |
| 141 | 139 | end |
| 142 | 140 | |
| 143 | 141 | it "should add storages as he is told to" do |
| toggle raw diff |
--- a/spec/lib/strokedb/config_spec.rb
+++ b/spec/lib/strokedb/config_spec.rb
@@ -134,10 +134,8 @@ describe "Config builder" do
it "should use specified store if told so" do
StrokeDB.send!(:remove_const,'SomeFunnyStore') if defined?(SomeFunnyStore)
StrokeDB::SomeFunnyStore = Class.new(Store)
- pending("not that important now") do
- config = StrokeDB::Config.build :store => :some_funny, :base_path => @base_path
- config.stores[:default].should be_a_kind_of(SomeFunnyStore)
- end
+ config = StrokeDB::Config.build :store => :some_funny, :base_path => @base_path
+ config.stores[:default].should be_a_kind_of(SomeFunnyStore)
end
it "should add storages as he is told to" do |