test/unit/message_test.rb in has_messages-0.1.1 vs test/unit/message_test.rb in has_messages-0.1.2
- old
+ new
@@ -154,15 +154,15 @@
def setup
@message = create_message
end
def test_should_not_be_able_to_queue
- assert !@message.queue!
+ assert !@message.queue
end
def test_should_not_be_able_to_deliver
- assert !@message.deliver!
+ assert !@message.deliver
end
end
class MessageWithRecipientsTest < Test::Unit::TestCase
def setup
@@ -191,52 +191,52 @@
def test_should_have_bcc_receivers
assert_equal [@ralph], @message.bcc
end
def test_should_be_able_to_queue
- assert @message.queue!
+ assert @message.queue
end
def test_should_be_able_to_deliver
- assert @message.deliver!
+ assert @message.deliver
end
end
class MessageQueuedTest < Test::Unit::TestCase
def setup
@message = create_message(:to => create_user(:login => 'coward'))
- @message.queue!
+ @message.queue
end
def test_should_be_in_the_queued_state
assert_equal 'queued', @message.state
end
def test_should_not_be_able_to_queue
- assert !@message.queue!
+ assert !@message.queue
end
def test_should_be_able_to_deliver
- assert @message.deliver!
+ assert @message.deliver
end
end
class MessageDeliveredTest < Test::Unit::TestCase
def setup
@message = create_message(:to => create_user(:login => 'coward'))
- @message.deliver!
+ @message.deliver
end
def test_should_be_in_the_sent_state
assert_equal 'sent', @message.state
end
def test_should_not_be_able_to_queue
- assert !@message.queue!
+ assert !@message.queue
end
def test_should_not_be_able_to_deliver
- assert !@message.deliver!
+ assert !@message.deliver
end
end
class MessageHiddenTest < Test::Unit::TestCase
def setup