spec/store_spec.rb in bigbench-0.0.4 vs spec/store_spec.rb in bigbench-0.0.5
- old
+ new
@@ -2,24 +2,25 @@
describe BigBench::Store do
before(:each) do
BigBench::Store.reset!
+ Dir.chdir File.dirname(__FILE__)
end
it "should setup properly" do
BigBench::Store.setup!("http://localhost:6379").should be_true
end
it "should supply a method to store a test receipts" do
- test = File.open("spec/tests/local.rb", "rb"){ |file| file.read }
+ test = File.open("tests/local.rb", "rb"){ |file| file.read }
BigBench::Store.test = test
BigBench::Store.test.should == test
end
it "should supply a method to global start a test" do
- test = File.open("spec/tests/local.rb", "rb"){ |file| file.read }
+ test = File.open("tests/local.rb", "rb"){ |file| file.read }
BigBench::Store.start
BigBench::Store.running?.should == true
BigBench::Store.stop
@@ -56,10 +57,10 @@
end
it "should allow to reset all values" do
BigBench::Store.setup!("http://localhost:6379").should be_true
- test = File.open("spec/tests/local.rb", "rb"){ |file| file.read }
+ test = File.open("tests/local.rb", "rb"){ |file| file.read }
BigBench::Store.test = test
BigBench::Store.start
BigBench::Store.reset!
\ No newline at end of file