Commit c586c3b5f53dbd689288b8992e857da3bdd95a80

Authored by Joenio Costa
1 parent e8f28cae

Cosmetic changes and removing trailing whitespaces

(ActionItem2694)
app/views/profile_editor/_person.rhtml
... ... @@ -24,4 +24,3 @@
24 24 <div>
25 25 <%= select_tag 'profile_data[notification_time]', options_for_select([[_('Disabled'), 0], [_('Hourly'), 1], [_('Half Day'), 12], [_('Daily'), 24]], @profile.notification_time) %>
26 26 </div>
27   -
... ...
test/unit/acts_as_having_settings_test.rb
... ... @@ -82,7 +82,7 @@ class ActsAsHavingSettingsTest &lt; ActiveSupport::TestCase
82 82  
83 83 should 'setting_changed be true if a setting passed as parameter was changed' do
84 84 obj = TestClass.new
85   - obj.flag= true
  85 + obj.flag = true
86 86 assert obj.setting_changed? 'flag'
87 87 end
88 88  
... ... @@ -93,24 +93,24 @@ class ActsAsHavingSettingsTest &lt; ActiveSupport::TestCase
93 93  
94 94 should 'setting_changed be false if a setting passed as parameter was changed with the same value' do
95 95 obj = TestClass.new
96   - obj.flag= true
  96 + obj.flag = true
97 97 obj.save
98   - obj.flag= true
  98 + obj.flag = true
99 99 assert !obj.setting_changed?('flag')
100 100 end
101 101  
102 102 should 'setting_changed be false if a setting passed as parameter was not changed but another setting is changed' do
103 103 obj = TestClass.new(:name => 'some name')
104 104 obj.save
105   - obj.name= 'antoher nme'
  105 + obj.name = 'antoher nme'
106 106 assert !obj.setting_changed?('flag')
107 107 end
108 108  
109 109 should 'setting_changed be true for all changed fields' do
110 110 obj = TestClass.new(:name => 'some name', :flag => false)
111 111 obj.save
112   - obj.name= 'another nme'
113   - obj.flag= true
  112 + obj.name = 'another nme'
  113 + obj.flag = true
114 114 assert obj.setting_changed?('flag')
115 115 assert obj.setting_changed?('name')
116 116 end
... ...