summaryrefslogtreecommitdiff
path: root/users/test
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2012-12-01 19:42:16 +0100
committerAzul <azul@leap.se>2012-12-01 19:42:16 +0100
commit4bbf03761852ea5dfcfd1384b98d2606842e95ad (patch)
treec7b0205829fbafc1604d0046c7b05a4d79ca2673 /users/test
parent01b37eb1115fcc5df97479f16ed3c1d9ee4415a0 (diff)
using login :is_admin => true instead of real records
Travis CI does not seem to have the admin user records. Let's not depend on them and just stub the admin user.
Diffstat (limited to 'users/test')
-rw-r--r--users/test/support/stub_record_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/users/test/support/stub_record_helper.rb b/users/test/support/stub_record_helper.rb
index e744ad7..ede21cf 100644
--- a/users/test/support/stub_record_helper.rb
+++ b/users/test/support/stub_record_helper.rb
@@ -7,7 +7,7 @@ module StubRecordHelper
params.reverse_merge!(klass.valid_attributes_hash)
end
params[:params] = params.stringify_keys
- params.reverse_merge! :id => 123,
+ params.reverse_merge! :id => "A123",
:class => klass,
:to_key => ['123'],
:to_json => %Q({"stub":"#{klass.name}"}),