spec/lib/configuration/index_spec.rb in picky-1.2.3 vs spec/lib/configuration/index_spec.rb in picky-1.2.4

- old
+ new

@@ -22,11 +22,11 @@ describe "index_path" do it "caches" do @config.index_path(:some_bundle, :some_name).should_not equal(@config.index_path(:some_bundle, :some_name)) end it "returns the right thing" do - @config.index_path(:some_bundle, :some_name).should == 'some/search/root/index/test/some_index/some_category_some_bundle_some_name' + @config.index_path(:some_bundle, :some_name).should == 'spec/test_directory/index/test/some_index/some_category_some_bundle_some_name' end end # describe "file_name" do # it "caches" do @@ -48,31 +48,31 @@ describe "index_root" do it "caches" do @config.index_root.should equal(@config.index_root) end it "returns the right thing" do - @config.index_root.should == 'some/search/root/index' + @config.index_root.should == 'spec/test_directory/index' end end describe "index_directory" do it "caches" do @config.index_directory.should equal(@config.index_directory) end it "returns the right thing" do - @config.index_directory.should == 'some/search/root/index/test/some_index' + @config.index_directory.should == 'spec/test_directory/index/test/some_index' end end describe "prepared_index_path" do it "caches" do @config.prepared_index_path.should equal(@config.prepared_index_path) end it "returns the right thing" do - @config.prepared_index_path.should == 'some/search/root/index/test/some_index/prepared_some_category_index' + @config.prepared_index_path.should == 'spec/test_directory/index/test/some_index/prepared_some_category_index' end end describe "prepare_index_directory" do it "calls the right thing" do - FileUtils.should_receive(:mkdir_p).once.with 'some/search/root/index/test/some_index' + FileUtils.should_receive(:mkdir_p).once.with 'spec/test_directory/index/test/some_index' @config.prepare_index_directory end end \ No newline at end of file