Commit c586c3b5f53dbd689288b8992e857da3bdd95a80
1 parent
e8f28cae
Exists in
master
and in
28 other branches
Cosmetic changes and removing trailing whitespaces
(ActionItem2694)
Showing
2 changed files
with
6 additions
and
7 deletions
Show diff stats
app/views/profile_editor/_person.rhtml
test/unit/acts_as_having_settings_test.rb
... | ... | @@ -82,7 +82,7 @@ class ActsAsHavingSettingsTest < 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 < 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 | ... | ... |