Add spec for editing channels
This commit is contained in:
parent
28091a9a97
commit
5bf1b4a653
|
@ -21,6 +21,12 @@ RSpec.describe DiscourseChat::Channel do
|
|||
|
||||
end
|
||||
|
||||
it 'should edit successfully' do
|
||||
channel = DiscourseChat::Channel.create!(provider:"dummy2", data:{val:"hello"})
|
||||
expect(channel.valid?).to eq(true)
|
||||
channel.save!
|
||||
end
|
||||
|
||||
it 'can be filtered by provider' do
|
||||
channel1 = DiscourseChat::Channel.create!(provider:'dummy')
|
||||
channel2 = DiscourseChat::Channel.create!(provider:'dummy2', data:{val:"blah"})
|
||||
|
|
Loading…
Reference in New Issue