[noosfero/noosfero][master] 2 commits: profile_description_block: fix indentation

Antonio Terceiro gitlab at gitlab.com
Wed Apr 1 11:28:28 BRT 2015


Antonio Terceiro pushed to master at Noosfero / noosfero


Commits:
97a79e39 by Antonio Terceiro at 2015-04-01T11:27:00Z
profile_description_block: fix indentation

- - - - -
8bea57ec by Antonio Terceiro at 2015-04-01T11:27:32Z
profile_description_block: fix test

- - - - -


1 changed file:

- plugins/profile_description_block/test/unit/profile_description_block_test.rb


Changes:

=====================================
plugins/profile_description_block/test/unit/profile_description_block_test.rb
=====================================
--- a/plugins/profile_description_block/test/unit/profile_description_block_test.rb
+++ b/plugins/profile_description_block/test/unit/profile_description_block_test.rb
@@ -1,14 +1,14 @@
 require File.expand_path(File.dirname(__FILE__) + "/../../../../test/test_helper")
 
 class ProfileDescriptionBlockTest < ActiveSupport::TestCase
-	def setup
-		e = Environment.default
+  def setup
+    e = Environment.default
     e.enabled_plugins = ['ProfileDescriptionPlugin']
     @person = create_user('test_user').person
     @profile = Profile.create!(:identifier => '1236',
                                :name => 'blabla',
                                :description => "")
-	end
+  end
 
   should 'describe itself' do
     assert_not_equal Block.description, ProfileDescriptionBlock.description
@@ -17,7 +17,7 @@ class ProfileDescriptionBlockTest < ActiveSupport::TestCase
   should "show profile description inside block" do
     new_block = ProfileDescriptionBlock.create!
     @profile.boxes.first.blocks << new_block
-    block_menssage = "Description field are empty"
+    block_menssage = "Description field is empty"
     assert (instance_eval(&Block.last.content).include?(block_menssage)),
       "description block doesn't show not found description message"
     description = "This is an test"


View it on GitLab: https://gitlab.com/noosfero/noosfero/compare/037e6360f53129c37e4e065cbe6185920dbff7fd...8bea57ec99a08f581258cbfa89f0140450532cef
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20150401/3c2feebb/attachment.html>


More information about the Noosfero-dev mailing list