Commit f24c277d08c2bdf6182773115c31af1719b3335a

Authored by Rodrigo Souto
1 parent 665572dd

Removing solr calls from mezuro plugin

plugins/mezuro/script/install/install-rvm.sh
... ... @@ -100,7 +100,6 @@ cd mezuro
100 100 git checkout mezuro-dev
101 101 rvm use ruby-1.8.7-p302@mezuro
102 102 cp config/database.yml.sqlite3 config/database.yml
103   -cp config/solr.yml.dist config/solr.yml
104 103 cp plugins/mezuro/service.yml.example plugins/mezuro/service.yml
105 104 cp plugins/mezuro/licenses.yml.example plugins/mezuro/licenses.yml
106 105 mkdir tmp
... ... @@ -116,5 +115,4 @@ ln -s mezuro-theme/ default
116 115 cd ../../../
117 116  
118 117 #Prepare Mezuro for running functional and unit tests
119   -rake solr:download
120   -rake db:test:prepare
121 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 23 @configuration_content = MezuroPlugin::ConfigurationContent.new(:profile => @profile, :name => @configuration.name, :configuration_id => 42)
24 24 @configuration_content.expects(:send_configuration_to_service).returns(nil)
25 25 @configuration_content.expects(:validate_configuration_name).returns(true)
26   - @configuration_content.stubs(:solr_save)
27 26 @configuration_content.save
28 27  
29 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 21 @content = MezuroPlugin::ConfigurationContent.new(:profile => @profile, :name => @configuration.name, :configuration_id => 42)
22 22 @content.expects(:send_configuration_to_service).returns(nil)
23 23 @content.expects(:validate_configuration_name).returns(true)
24   - @content.stubs(:solr_save)
25 24 @content.save
26 25  
27 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 16 @reading_hash = ReadingFixtures.hash
17 17 @content = MezuroPlugin::ReadingGroupContent.new(:profile => @profile, :name => name)
18 18 @content.expects(:send_reading_group_to_service).returns(nil)
19   - @content.stubs(:solr_save)
20 19 @content.save
21 20 end
22 21  
... ...
plugins/mezuro/test/functional/profile/mezuro_plugin_repository_controller_test.rb
... ... @@ -21,7 +21,6 @@ class MezuroPluginRepositoryControllerTest < ActionController::TestCase
21 21 @repository_hash = RepositoryFixtures.hash
22 22 @content = MezuroPlugin::ProjectContent.new(:profile => @profile, :name => name)
23 23 @content.expects(:send_project_to_service).returns(nil)
24   - @content.stubs(:solr_save)
25 24 @content.save
26 25 end
27 26  
... ...
plugins/mezuro/test/unit/mezuro_plugin/configuration_content_test.rb
... ... @@ -48,7 +48,6 @@ class ConfigurationContentTest < ActiveSupport::TestCase
48 48  
49 49 should 'send configuration to service after saving' do
50 50 @content.expects :send_configuration_to_service
51   - @content.stubs(:solr_save)
52 51 @content.run_callbacks :before_save
53 52 end
54 53  
... ...