aboutsummaryrefslogtreecommitdiffstats
path: root/spec/models/user_spec.rb
diff options
context:
space:
mode:
authorXinhui2016-08-03 16:21:22 +0200
committerXinhui2016-08-03 16:21:22 +0200
commit3dc76115b605dd69c3bc0e24a48860ab874228b8 (patch)
tree98eee9253b35bd39493448c815c5e0e324e3f225 /spec/models/user_spec.rb
parentfa7154a9fe684f8b42bfc4afcacaa56bc1fe6d45 (diff)
downloadchouette-core-3dc76115b605dd69c3bc0e24a48860ab874228b8.tar.bz2
Add column Code to Organisation
Diffstat (limited to 'spec/models/user_spec.rb')
-rw-r--r--spec/models/user_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb
index ea1170aa1..9c9efce4b 100644
--- a/spec/models/user_spec.rb
+++ b/spec/models/user_spec.rb
@@ -32,7 +32,7 @@ describe User, :type => :model do
it 'should not create a new organisation if organisation is already present' do
organisation = create :organisation
- ticket.extra_attributes[:organisation_name] = organisation.name
+ ticket.extra_attributes[:organisation_code] = organisation.code
expect{User.authenticate_with_cas_ticket(ticket)}.not_to change{ Organisation.count }
end
end