summaryrefslogtreecommitdiff
path: root/test/models/event_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/models/event_test.rb')
-rw-r--r--test/models/event_test.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/models/event_test.rb b/test/models/event_test.rb
index 7027376..348c273 100644
--- a/test/models/event_test.rb
+++ b/test/models/event_test.rb
@@ -28,11 +28,11 @@ class EventTest < ActiveSupport::TestCase
Event.delete_all
ec = Event.all.count
ev = nil
- assert_nothing_raised(Exception) do
+ assert_nothing_raised do
ev = Event.make(:event_type_name => ev_types(:created).name, :membership_message => MembershipMessage.find(1))
end
- assert_nothing_raised(ActiveRecord::RecordNotFound) { ev = Event.find(ev.id) }
+ assert_nothing_raised { ev = Event.find(ev.id) }
assert_equal(1,Event.all.count)
assert_equal(participants(:ilias_stgt).id, ev.participant_id)
@@ -43,11 +43,11 @@ class EventTest < ActiveSupport::TestCase
test "participant deletion" do
Event.delete_all
ev = nil
- assert_nothing_raised(Exception) do
+ assert_nothing_raised do
ev = Event.make(:event_type_name => ev_types(:created).name, :membership_message => MembershipMessage.find(1))
end
- assert_nothing_raised(Exception) { participants(:ilias_stgt).destroy }
+ assert_nothing_raised { participants(:ilias_stgt).destroy }
assert_raise(ActiveRecord::RecordNotFound) { Event.find(ev.id) } # event has to be gone (removed)
assert_equal(0,Event.all.count) # event has to be gone (removed)
end