aboutsummaryrefslogtreecommitdiffstats
path: root/spec/models
diff options
context:
space:
mode:
Diffstat (limited to 'spec/models')
-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