File: buffer_spec.rb

package info (click to toggle)
ruby-async-rspec 1.17.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 228 kB
  • sloc: ruby: 449; makefile: 4
file content (18 lines) | stat: -rw-r--r-- 383 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# frozen_string_literal: true

# Released under the MIT License.
# Copyright, 2018-2023, by Samuel Williams.

require 'async/rspec/buffer'

RSpec.describe Async::RSpec::Buffer do
	include_context Async::RSpec::Buffer
	
	it "behaves like a file" do
		expect(buffer).to be_instance_of(File)
	end
	
	it "should not exist on disk" do
		expect(File).to_not be_exist(buffer.path)
	end
end