summaryrefslogtreecommitdiff
path: root/test/functional
diff options
context:
space:
mode:
authorankonym <ankonym@gmail.com>2015-09-01 10:48:25 +0200
committerankonym <ankonym@gmail.com>2015-09-28 15:12:45 +0200
commitc48e921c101d49bf68fa1af489b8012517b1a105 (patch)
tree78cc0754a9e24c805e8dc5cf4c2af4e204752af3 /test/functional
parent06ebc254bc4537e81c1336627ba8a54c881a1765 (diff)
Fix several test failures by stubbing invite code validation
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/identities_controller_test.rb2
-rw-r--r--test/functional/v1/messages_controller_test.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/identities_controller_test.rb b/test/functional/identities_controller_test.rb
index c900178..e491c52 100644
--- a/test/functional/identities_controller_test.rb
+++ b/test/functional/identities_controller_test.rb
@@ -3,7 +3,7 @@ require 'test_helper'
class IdentitiesControllerTest < ActionController::TestCase
setup do
- InviteCodeValidator.any_instance.stubs(:not_existent?).returns(false)
+ InviteCodeValidator.any_instance.stubs(:validate)
end
test "admin can list active and blocked ids" do
diff --git a/test/functional/v1/messages_controller_test.rb b/test/functional/v1/messages_controller_test.rb
index 455eebd..720d862 100644
--- a/test/functional/v1/messages_controller_test.rb
+++ b/test/functional/v1/messages_controller_test.rb
@@ -3,7 +3,7 @@ require 'test_helper'
class V1::MessagesControllerTest < ActionController::TestCase
setup do
- InviteCodeValidator.any_instance.stubs(:not_existent?).returns(false)
+ InviteCodeValidator.any_instance.stubs(:validate)
@user = FactoryGirl.build(:user)
@user.save
@message = Message.new(:text => 'a test message')