reorganize synapse spec pendingness
This commit is contained in:
parent
63e4939592
commit
c7f7fa1d1b
1 changed files with 2 additions and 2 deletions
|
@ -1,8 +1,6 @@
|
||||||
require 'rails_helper'
|
require 'rails_helper'
|
||||||
|
|
||||||
RSpec.describe Synapse, type: :model do
|
RSpec.describe Synapse, type: :model do
|
||||||
pending "add some examples to (or delete) #{__FILE__}"
|
|
||||||
pending "validate that desc can't be nil - important for javascript"
|
|
||||||
it { is_expected.to belong_to :user }
|
it { is_expected.to belong_to :user }
|
||||||
it { is_expected.to belong_to :topic1 }
|
it { is_expected.to belong_to :topic1 }
|
||||||
it { is_expected.to belong_to :topic2 }
|
it { is_expected.to belong_to :topic2 }
|
||||||
|
@ -11,6 +9,8 @@ RSpec.describe Synapse, type: :model do
|
||||||
it { is_expected.to validate_presence_of :permission }
|
it { is_expected.to validate_presence_of :permission }
|
||||||
it { is_expected.to validate_inclusion_of(:permission).in_array Perm::ISSIONS.map(&:to_s) }
|
it { is_expected.to validate_inclusion_of(:permission).in_array Perm::ISSIONS.map(&:to_s) }
|
||||||
|
|
||||||
|
pending "validate that desc can't be nil - important for javascript"
|
||||||
|
|
||||||
context 'permissions' do
|
context 'permissions' do
|
||||||
let(:owner) { create :user }
|
let(:owner) { create :user }
|
||||||
let(:other_user) { create :user }
|
let(:other_user) { create :user }
|
||||||
|
|
Loading…
Reference in a new issue