* Removed Pixa/Tinami sources

* Upgraded to Rails 3.2.3
* Fixed tests
This commit is contained in:
albert
2012-06-01 19:22:58 -04:00
parent 105cba5963
commit 17881068e1
124 changed files with 1063 additions and 1214 deletions

View File

@@ -3,11 +3,11 @@ require 'test_helper'
class DmailsControllerTest < ActionController::TestCase
context "The dmails controller" do
setup do
@user = Factory.create(:user)
@unrelated_user = Factory.create(:user)
@user = FactoryGirl.create(:user)
@unrelated_user = FactoryGirl.create(:user)
CurrentUser.user = @user
CurrentUser.ip_addr = "127.0.0.1"
@dmail = Factory.create(:dmail, :owner => @user)
@dmail = FactoryGirl.create(:dmail, :owner => @user)
end
teardown do
@@ -73,7 +73,7 @@ class DmailsControllerTest < ActionController::TestCase
context "create action" do
setup do
@user_2 = Factory.create(:user)
@user_2 = FactoryGirl.create(:user)
end
should "create two messages, one for the sender and one for the recipient" do