mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-31 03:59:51 +08:00
fix code style
This commit is contained in:
parent
8f0713229a
commit
3cc4326eb7
1 changed files with 4 additions and 4 deletions
|
@ -105,24 +105,24 @@ describe Activity, type: :model do
|
|||
end
|
||||
describe '.notifiable?' do
|
||||
context 'Creating notifiable activity' do
|
||||
let(:activity) do
|
||||
let(:activity) do
|
||||
create :activity,
|
||||
subject: (create :task_comment),
|
||||
type_of: 'add_comment_to_module', subject_type: 'MyModule'
|
||||
end
|
||||
it 'is notifiable when when creating comment' do
|
||||
expect(activity.send(:notifiable?)).to be true
|
||||
expect(activity.__send__(:notifiable?)).to be true
|
||||
end
|
||||
end
|
||||
|
||||
context 'Creating non-notifiable activity' do
|
||||
let(:activity) do
|
||||
let(:activity) do
|
||||
create :activity,
|
||||
subject: (create :my_module),
|
||||
type_of: 'create_module', subject_type: 'MyModule'
|
||||
end
|
||||
it 'is not notifiable when when creating new task' do
|
||||
expect(activity.send(:notifiable?)).to be false
|
||||
expect(activity.__send__(:notifiable?)).to be false
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue