clean up whitespace

This commit is contained in:
Matt Rogers 2013-07-29 16:36:52 -05:00
parent a1aaa283f1
commit 07a983ca1c
2 changed files with 4 additions and 4 deletions

View file

@ -1,7 +1,7 @@
class Preference < ActiveRecord::Base
belongs_to :user
belongs_to :sms_context, :class_name => 'Context'
def self.due_styles
{ :due_in_n_days => 0, :due_on => 1}
end

View file

@ -13,17 +13,17 @@ class PreferenceTest < ActiveSupport::TestCase
def test_time_zone
assert_equal 'London', @admin_user.preference.time_zone
end
def test_show_project_on_todo_done
assert @other_user.preference.show_project_on_todo_done
assert !@admin_user.preference.show_project_on_todo_done
end
def test_parse_date
date = Time.new(2007, 05, 20).in_time_zone(@admin_user.preference.time_zone).at_midnight
assert_equal date.to_s, @admin_user.preference.parse_date('20/5/2007').to_s
end
def test_parse_date_returns_nil_if_string_is_empty
assert_nil @admin_user.preference.parse_date('')
end