From 9b914228fd8575cf27e671ca0d63952395a33f13 Mon Sep 17 00:00:00 2001 From: Florian Hanke Date: Thu, 30 Sep 2010 02:30:22 +0200 Subject: [PATCH] - outdated code --- .../lib/picky/configuration/configuration.rb | 13 ------- server/lib/picky/loader.rb | 1 - .../lib/configuration/configuration_spec.rb | 38 ------------------- server/spec/lib/configuration_spec.rb | 8 ---- 4 files changed, 60 deletions(-) delete mode 100644 server/lib/picky/configuration/configuration.rb delete mode 100644 server/spec/lib/configuration/configuration_spec.rb delete mode 100644 server/spec/lib/configuration_spec.rb diff --git a/server/lib/picky/configuration/configuration.rb b/server/lib/picky/configuration/configuration.rb deleted file mode 100644 index 651a8e82..00000000 --- a/server/lib/picky/configuration/configuration.rb +++ /dev/null @@ -1,13 +0,0 @@ -# module Configuration -# -# def self.indexes *types -# Indexes.new(*types).save -# end -# def self.type name, *fields -# Type.new name, *fields -# end -# def self.field name, options = {} -# Field.new name, options -# end -# -# end \ No newline at end of file diff --git a/server/lib/picky/loader.rb b/server/lib/picky/loader.rb index f3906c61..41b3e391 100644 --- a/server/lib/picky/loader.rb +++ b/server/lib/picky/loader.rb @@ -220,7 +220,6 @@ def self.load_framework load_relative 'configuration/field' load_relative 'configuration/type' load_relative 'configuration/indexes' - load_relative 'configuration/configuration' # ... in Application. # diff --git a/server/spec/lib/configuration/configuration_spec.rb b/server/spec/lib/configuration/configuration_spec.rb deleted file mode 100644 index 52e72ee7..00000000 --- a/server/spec/lib/configuration/configuration_spec.rb +++ /dev/null @@ -1,38 +0,0 @@ -# encoding: utf-8 -require 'spec_helper' - -describe Configuration do - - # describe 'field' do - # it 'should define a new type' do - # Configuration::Field.should_receive(:new).once.with :some_name, :some_options - # - # Configuration.field :some_name, :some_options - # end - # it 'should respect the default' do - # Configuration::Field.should_receive(:new).once.with :some_name, {} - # - # Configuration.field :some_name - # end - # end - # - # describe 'type' do - # it 'should define a new type' do - # Configuration::Type.should_receive(:new).once.with :some_name, :some_field, :some_other_field - # - # Configuration.type :some_name, :some_field, :some_other_field - # end - # end - # - # describe 'indexes' do - # it 'should define the indexes and save' do - # indexes = mock :indexes - # - # Configuration::Indexes.should_receive(:new).once.with(:some_types).and_return indexes - # indexes.should_receive(:save).once.with - # - # Configuration.indexes :some_types - # end - # end - -end \ No newline at end of file diff --git a/server/spec/lib/configuration_spec.rb b/server/spec/lib/configuration_spec.rb deleted file mode 100644 index 6ef1b75c..00000000 --- a/server/spec/lib/configuration_spec.rb +++ /dev/null @@ -1,8 +0,0 @@ -# encoding: utf-8 -require 'spec_helper' - -describe Configuration do - - # TODO - -end \ No newline at end of file