Commit 2fc9973f authored by Mario Manno's avatar Mario Manno

add test-unit to make travis work

parent 3a0a4edd
......@@ -43,6 +43,7 @@ end
group :test do
gem 'factory_girl_rails', '~> 4.0'
gem 'minitest'
gem 'test-unit', '~> 3.0'
gem 'turn', :require => false
end
......
......@@ -132,6 +132,7 @@ GEM
polyamorous (0.6.4)
activerecord (>= 3.0)
polyglot (0.3.5)
power_assert (0.2.4)
prawn (0.15.0)
pdf-core (~> 0.1.3)
ttfunk (~> 1.1.0)
......@@ -202,6 +203,8 @@ GEM
railties (~> 3.0)
sucker_punch (1.0.3)
celluloid (~> 0.15.2)
test-unit (3.1.2)
power_assert
thor (0.19.1)
tilt (1.4.1)
timers (1.1.0)
......@@ -264,6 +267,7 @@ DEPENDENCIES
sqlite3
strong_parameters
sucker_punch (~> 1.0)
test-unit (~> 3.0)
transitions
turn
twitter-bootstrap-rails!
......
......@@ -17,7 +17,6 @@ class Notification < ActiveRecord::Base
'public_name' => 'Speaker public name',
'forename' => 'Speaker forename',
'surname' => 'Speaker surname',
'public_name' => 'Speaker public name',
'event' => 'Event title',
'link' => 'Confirmation link',
}
......@@ -53,7 +52,7 @@ BODY
return if self.call_for_papers.nil?
self.call_for_papers.notifications.each { |n|
if n.id != self.id and n.locale == self.locale
self.errors.add(:locale, "#{n.locale} already added to this cfp")
self.errors.add(:locale, "#{n.locale} already added to this cfp")
end
}
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment