Sha256: 643d49ab61b456c773d825b3b0e03881aab47f2bbeaa1280d44547169adee795
Contents?: true
Size: 539 Bytes
Versions: 2
Compression:
Stored size: 539 Bytes
Contents
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
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ffi-http-parser-0.2.0 | spec/parser_spec.rb |
ffi-http-parser-0.1.0 | spec/parser_spec.rb |