Commit f24c277d08c2bdf6182773115c31af1719b3335a
1 parent
665572dd
Exists in
master
and in
28 other branches
Removing solr calls from mezuro plugin
Showing
6 changed files
with
1 additions
and
8 deletions
Show diff stats
plugins/mezuro/script/install/install-rvm.sh
@@ -100,7 +100,6 @@ cd mezuro | @@ -100,7 +100,6 @@ cd mezuro | ||
100 | git checkout mezuro-dev | 100 | git checkout mezuro-dev |
101 | rvm use ruby-1.8.7-p302@mezuro | 101 | rvm use ruby-1.8.7-p302@mezuro |
102 | cp config/database.yml.sqlite3 config/database.yml | 102 | cp config/database.yml.sqlite3 config/database.yml |
103 | -cp config/solr.yml.dist config/solr.yml | ||
104 | cp plugins/mezuro/service.yml.example plugins/mezuro/service.yml | 103 | cp plugins/mezuro/service.yml.example plugins/mezuro/service.yml |
105 | cp plugins/mezuro/licenses.yml.example plugins/mezuro/licenses.yml | 104 | cp plugins/mezuro/licenses.yml.example plugins/mezuro/licenses.yml |
106 | mkdir tmp | 105 | mkdir tmp |
@@ -116,5 +115,4 @@ ln -s mezuro-theme/ default | @@ -116,5 +115,4 @@ ln -s mezuro-theme/ default | ||
116 | cd ../../../ | 115 | cd ../../../ |
117 | 116 | ||
118 | #Prepare Mezuro for running functional and unit tests | 117 | #Prepare Mezuro for running functional and unit tests |
119 | -rake solr:download | ||
120 | -rake db:test:prepare | ||
121 | \ No newline at end of file | 118 | \ No newline at end of file |
119 | +rake db:test:prepare |
plugins/mezuro/test/functional/myprofile/mezuro_plugin_metric_configuration_controller_test.rb
@@ -23,7 +23,6 @@ class MezuroPluginMetricConfigurationControllerTest < ActionController::TestCase | @@ -23,7 +23,6 @@ class MezuroPluginMetricConfigurationControllerTest < ActionController::TestCase | ||
23 | @configuration_content = MezuroPlugin::ConfigurationContent.new(:profile => @profile, :name => @configuration.name, :configuration_id => 42) | 23 | @configuration_content = MezuroPlugin::ConfigurationContent.new(:profile => @profile, :name => @configuration.name, :configuration_id => 42) |
24 | @configuration_content.expects(:send_configuration_to_service).returns(nil) | 24 | @configuration_content.expects(:send_configuration_to_service).returns(nil) |
25 | @configuration_content.expects(:validate_configuration_name).returns(true) | 25 | @configuration_content.expects(:validate_configuration_name).returns(true) |
26 | - @configuration_content.stubs(:solr_save) | ||
27 | @configuration_content.save | 26 | @configuration_content.save |
28 | 27 | ||
29 | @base_tool = BaseToolFixtures.base_tool | 28 | @base_tool = BaseToolFixtures.base_tool |
plugins/mezuro/test/functional/myprofile/mezuro_plugin_range_controller_test.rb
@@ -21,7 +21,6 @@ class MezuroPluginRangeControllerTest < ActionController::TestCase | @@ -21,7 +21,6 @@ class MezuroPluginRangeControllerTest < ActionController::TestCase | ||
21 | @content = MezuroPlugin::ConfigurationContent.new(:profile => @profile, :name => @configuration.name, :configuration_id => 42) | 21 | @content = MezuroPlugin::ConfigurationContent.new(:profile => @profile, :name => @configuration.name, :configuration_id => 42) |
22 | @content.expects(:send_configuration_to_service).returns(nil) | 22 | @content.expects(:send_configuration_to_service).returns(nil) |
23 | @content.expects(:validate_configuration_name).returns(true) | 23 | @content.expects(:validate_configuration_name).returns(true) |
24 | - @content.stubs(:solr_save) | ||
25 | @content.save | 24 | @content.save |
26 | 25 | ||
27 | @created_range = RangeFixtures.created_range | 26 | @created_range = RangeFixtures.created_range |
plugins/mezuro/test/functional/myprofile/mezuro_plugin_reading_controller_test.rb
@@ -16,7 +16,6 @@ class MezuroPluginReadingControllerTest < ActionController::TestCase | @@ -16,7 +16,6 @@ class MezuroPluginReadingControllerTest < ActionController::TestCase | ||
16 | @reading_hash = ReadingFixtures.hash | 16 | @reading_hash = ReadingFixtures.hash |
17 | @content = MezuroPlugin::ReadingGroupContent.new(:profile => @profile, :name => name) | 17 | @content = MezuroPlugin::ReadingGroupContent.new(:profile => @profile, :name => name) |
18 | @content.expects(:send_reading_group_to_service).returns(nil) | 18 | @content.expects(:send_reading_group_to_service).returns(nil) |
19 | - @content.stubs(:solr_save) | ||
20 | @content.save | 19 | @content.save |
21 | end | 20 | end |
22 | 21 |
plugins/mezuro/test/functional/profile/mezuro_plugin_repository_controller_test.rb
@@ -21,7 +21,6 @@ class MezuroPluginRepositoryControllerTest < ActionController::TestCase | @@ -21,7 +21,6 @@ class MezuroPluginRepositoryControllerTest < ActionController::TestCase | ||
21 | @repository_hash = RepositoryFixtures.hash | 21 | @repository_hash = RepositoryFixtures.hash |
22 | @content = MezuroPlugin::ProjectContent.new(:profile => @profile, :name => name) | 22 | @content = MezuroPlugin::ProjectContent.new(:profile => @profile, :name => name) |
23 | @content.expects(:send_project_to_service).returns(nil) | 23 | @content.expects(:send_project_to_service).returns(nil) |
24 | - @content.stubs(:solr_save) | ||
25 | @content.save | 24 | @content.save |
26 | end | 25 | end |
27 | 26 |
plugins/mezuro/test/unit/mezuro_plugin/configuration_content_test.rb
@@ -48,7 +48,6 @@ class ConfigurationContentTest < ActiveSupport::TestCase | @@ -48,7 +48,6 @@ class ConfigurationContentTest < ActiveSupport::TestCase | ||
48 | 48 | ||
49 | should 'send configuration to service after saving' do | 49 | should 'send configuration to service after saving' do |
50 | @content.expects :send_configuration_to_service | 50 | @content.expects :send_configuration_to_service |
51 | - @content.stubs(:solr_save) | ||
52 | @content.run_callbacks :before_save | 51 | @content.run_callbacks :before_save |
53 | end | 52 | end |
54 | 53 |