From f24c277d08c2bdf6182773115c31af1719b3335a Mon Sep 17 00:00:00 2001 From: Rodrigo Souto Date: Thu, 9 May 2013 18:26:37 -0300 Subject: [PATCH] Removing solr calls from mezuro plugin --- plugins/mezuro/script/install/install-rvm.sh | 4 +--- plugins/mezuro/test/functional/myprofile/mezuro_plugin_metric_configuration_controller_test.rb | 1 - plugins/mezuro/test/functional/myprofile/mezuro_plugin_range_controller_test.rb | 1 - plugins/mezuro/test/functional/myprofile/mezuro_plugin_reading_controller_test.rb | 1 - plugins/mezuro/test/functional/profile/mezuro_plugin_repository_controller_test.rb | 1 - plugins/mezuro/test/unit/mezuro_plugin/configuration_content_test.rb | 1 - 6 files changed, 1 insertion(+), 8 deletions(-) diff --git a/plugins/mezuro/script/install/install-rvm.sh b/plugins/mezuro/script/install/install-rvm.sh index a36d88e..152ef12 100644 --- a/plugins/mezuro/script/install/install-rvm.sh +++ b/plugins/mezuro/script/install/install-rvm.sh @@ -100,7 +100,6 @@ cd mezuro git checkout mezuro-dev rvm use ruby-1.8.7-p302@mezuro cp config/database.yml.sqlite3 config/database.yml -cp config/solr.yml.dist config/solr.yml cp plugins/mezuro/service.yml.example plugins/mezuro/service.yml cp plugins/mezuro/licenses.yml.example plugins/mezuro/licenses.yml mkdir tmp @@ -116,5 +115,4 @@ ln -s mezuro-theme/ default cd ../../../ #Prepare Mezuro for running functional and unit tests -rake solr:download -rake db:test:prepare \ No newline at end of file +rake db:test:prepare diff --git a/plugins/mezuro/test/functional/myprofile/mezuro_plugin_metric_configuration_controller_test.rb b/plugins/mezuro/test/functional/myprofile/mezuro_plugin_metric_configuration_controller_test.rb index d3a72fb..e9f6589 100644 --- a/plugins/mezuro/test/functional/myprofile/mezuro_plugin_metric_configuration_controller_test.rb +++ b/plugins/mezuro/test/functional/myprofile/mezuro_plugin_metric_configuration_controller_test.rb @@ -23,7 +23,6 @@ class MezuroPluginMetricConfigurationControllerTest < ActionController::TestCase @configuration_content = MezuroPlugin::ConfigurationContent.new(:profile => @profile, :name => @configuration.name, :configuration_id => 42) @configuration_content.expects(:send_configuration_to_service).returns(nil) @configuration_content.expects(:validate_configuration_name).returns(true) - @configuration_content.stubs(:solr_save) @configuration_content.save @base_tool = BaseToolFixtures.base_tool diff --git a/plugins/mezuro/test/functional/myprofile/mezuro_plugin_range_controller_test.rb b/plugins/mezuro/test/functional/myprofile/mezuro_plugin_range_controller_test.rb index 2a3685b..39749b4 100644 --- a/plugins/mezuro/test/functional/myprofile/mezuro_plugin_range_controller_test.rb +++ b/plugins/mezuro/test/functional/myprofile/mezuro_plugin_range_controller_test.rb @@ -21,7 +21,6 @@ class MezuroPluginRangeControllerTest < ActionController::TestCase @content = MezuroPlugin::ConfigurationContent.new(:profile => @profile, :name => @configuration.name, :configuration_id => 42) @content.expects(:send_configuration_to_service).returns(nil) @content.expects(:validate_configuration_name).returns(true) - @content.stubs(:solr_save) @content.save @created_range = RangeFixtures.created_range diff --git a/plugins/mezuro/test/functional/myprofile/mezuro_plugin_reading_controller_test.rb b/plugins/mezuro/test/functional/myprofile/mezuro_plugin_reading_controller_test.rb index aef6748..47b5f20 100644 --- a/plugins/mezuro/test/functional/myprofile/mezuro_plugin_reading_controller_test.rb +++ b/plugins/mezuro/test/functional/myprofile/mezuro_plugin_reading_controller_test.rb @@ -16,7 +16,6 @@ class MezuroPluginReadingControllerTest < ActionController::TestCase @reading_hash = ReadingFixtures.hash @content = MezuroPlugin::ReadingGroupContent.new(:profile => @profile, :name => name) @content.expects(:send_reading_group_to_service).returns(nil) - @content.stubs(:solr_save) @content.save end diff --git a/plugins/mezuro/test/functional/profile/mezuro_plugin_repository_controller_test.rb b/plugins/mezuro/test/functional/profile/mezuro_plugin_repository_controller_test.rb index 67b2bb9..f470297 100644 --- a/plugins/mezuro/test/functional/profile/mezuro_plugin_repository_controller_test.rb +++ b/plugins/mezuro/test/functional/profile/mezuro_plugin_repository_controller_test.rb @@ -21,7 +21,6 @@ class MezuroPluginRepositoryControllerTest < ActionController::TestCase @repository_hash = RepositoryFixtures.hash @content = MezuroPlugin::ProjectContent.new(:profile => @profile, :name => name) @content.expects(:send_project_to_service).returns(nil) - @content.stubs(:solr_save) @content.save end diff --git a/plugins/mezuro/test/unit/mezuro_plugin/configuration_content_test.rb b/plugins/mezuro/test/unit/mezuro_plugin/configuration_content_test.rb index 9a89b50..4765074 100644 --- a/plugins/mezuro/test/unit/mezuro_plugin/configuration_content_test.rb +++ b/plugins/mezuro/test/unit/mezuro_plugin/configuration_content_test.rb @@ -48,7 +48,6 @@ class ConfigurationContentTest < ActiveSupport::TestCase should 'send configuration to service after saving' do @content.expects :send_configuration_to_service - @content.stubs(:solr_save) @content.run_callbacks :before_save end -- libgit2 0.21.2