Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (19 sloc) 539 Bytes
require 'spec_helper'
require 'ffi/http/parser'
describe FFI::HTTP::Parser do
it "should have a VERSION constant" do
subject.const_get('VERSION').should_not be_empty
end
describe "new" do
it "should create a new Instance object" do
subject.new.should be_kind_of(Instance)
end
context "when given a block" do
it "should yield the new Instance object" do
expected = nil
subject.new { |parser| expected = parser }
expected.should be_kind_of(Instance)
end
end
end
end
Something went wrong with that request. Please try again.