mirror of
https://github.com/discourse/discourse.git
synced 2025-09-10 01:42:47 +08:00
Update rspec syntax to v3
update rspec syntax to v3 change syntax to rspec v3 oops. fix typo mailers classes with rspec3 syntax helpers with rspec3 syntax jobs with rspec3 syntax serializers with rspec3 syntax views with rspec3 syntax support to rspec3 syntax category spec with rspec3 syntax
This commit is contained in:
parent
fce74e64a1
commit
b3d769ff4f
80 changed files with 1245 additions and 1247 deletions
|
@ -3,14 +3,14 @@ require 'spec_helper'
|
|||
require_dependency 'api_key'
|
||||
|
||||
describe ApiKey do
|
||||
it { should belong_to :user }
|
||||
it { should belong_to :created_by }
|
||||
it { is_expected.to belong_to :user }
|
||||
it { is_expected.to belong_to :created_by }
|
||||
|
||||
it { should validate_presence_of :key }
|
||||
it { is_expected.to validate_presence_of :key }
|
||||
|
||||
pending 'validates uniqueness of user_id' do
|
||||
Fabricate(:api_key)
|
||||
should validate_uniqueness_of(:user_id)
|
||||
is_expected.to validate_uniqueness_of(:user_id)
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue