Merge branch 'master' into glitch-soc/merge-upstream
Conflicts: - package.json Not really a conflict, caused by an additional dependency in glitch-soc. - yarn.lock Not really a conflict, caused by an additional dependency in glitch-soc.
This commit is contained in:
@ -34,32 +34,6 @@ RSpec.describe Notification, type: :model do
|
||||
end
|
||||
end
|
||||
|
||||
describe '#browserable?' do
|
||||
let(:notification) { Fabricate(:notification) }
|
||||
|
||||
subject { notification.browserable? }
|
||||
|
||||
context 'type is :follow_request' do
|
||||
before do
|
||||
allow(notification).to receive(:type).and_return(:follow_request)
|
||||
end
|
||||
|
||||
it 'returns false' do
|
||||
is_expected.to be false
|
||||
end
|
||||
end
|
||||
|
||||
context 'type is not :follow_request' do
|
||||
before do
|
||||
allow(notification).to receive(:type).and_return(:else)
|
||||
end
|
||||
|
||||
it 'returns true' do
|
||||
is_expected.to be true
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
describe '#type' do
|
||||
it 'returns :reblog for a Status' do
|
||||
notification = Notification.new(activity: Status.new)
|
||||
|
@ -12,7 +12,7 @@ end
|
||||
gc_counter = -1
|
||||
|
||||
RSpec.configure do |config|
|
||||
config.example_status_persistence_file_path = ".cache/rspec"
|
||||
config.example_status_persistence_file_path = "tmp/rspec/examples.txt"
|
||||
config.expect_with :rspec do |expectations|
|
||||
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
|
||||
end
|
||||
|
Reference in New Issue
Block a user