spec/reel/response/writer_spec.rb in reel-0.5.0 vs spec/reel/response/writer_spec.rb in reel-0.6.0.pre1
- old
+ new
@@ -1,7 +1,7 @@
require 'spec_helper'
-describe Reel::Response::Writer do
+RSpec.describe Reel::Response::Writer do
let(:fixture_path) { File.expand_path("../../../fixtures/example.txt", __FILE__) }
let(:expected_response) { "HTTP/1.1 200 OK\r\nContent-Length: 56\r\n\r\n#{File.read(fixture_path)}" }
it "streams static files" do
with_socket_pair do |socket, peer|