From 1fdf29c525bd9d13273ef3de9ce79d8d5378a433 Mon Sep 17 00:00:00 2001 From: Hauke Klement Date: Mon, 9 Feb 2015 14:44:30 +0100 Subject: [PATCH] fixed naming --- spec/models/hint_spec.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/spec/models/hint_spec.rb b/spec/models/hint_spec.rb index c65b3080..54ee34c2 100644 --- a/spec/models/hint_spec.rb +++ b/spec/models/hint_spec.rb @@ -1,25 +1,25 @@ require 'rails_helper' describe Hint do - let(:user) { Hint.create } + let(:hint) { Hint.create } it 'validates the presence of an execution environment' do - expect(user.errors[:execution_environment_id]).to be_present + expect(hint.errors[:execution_environment_id]).to be_present end it 'validates the presence of a locale' do - expect(user.errors[:locale]).to be_present + expect(hint.errors[:locale]).to be_present end it 'validates the presence of a message' do - expect(user.errors[:message]).to be_present + expect(hint.errors[:message]).to be_present end it 'validates the presence of a name' do - expect(user.errors[:name]).to be_present + expect(hint.errors[:name]).to be_present end it 'validates the presence of a regular expression' do - expect(user.errors[:regular_expression]).to be_present + expect(hint.errors[:regular_expression]).to be_present end end