mirror of
https://github.com/discourse/discourse-chat-integration.git
synced 2025-03-08 18:59:38 +00:00
Add spec for editing channels
This commit is contained in:
parent
28091a9a97
commit
5bf1b4a653
@ -21,6 +21,12 @@ RSpec.describe DiscourseChat::Channel do
|
|||||||
|
|
||||||
end
|
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
|
it 'can be filtered by provider' do
|
||||||
channel1 = DiscourseChat::Channel.create!(provider:'dummy')
|
channel1 = DiscourseChat::Channel.create!(provider:'dummy')
|
||||||
channel2 = DiscourseChat::Channel.create!(provider:'dummy2', data:{val:"blah"})
|
channel2 = DiscourseChat::Channel.create!(provider:'dummy2', data:{val:"blah"})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user