Skip to content

Commit

Permalink
Require "ffi/version" per default
Browse files Browse the repository at this point in the history
FFI::VERSION should be available in the default API.
  • Loading branch information
larskanis committed Jan 9, 2020
1 parent 5694fd8 commit 26a22ba
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/ffi/ffi.rb
Expand Up @@ -43,3 +43,4 @@
require 'ffi/autopointer'
require 'ffi/variadic'
require 'ffi/enum'
require 'ffi/version'
6 changes: 6 additions & 0 deletions spec/ffi/ffi_spec.rb
Expand Up @@ -25,4 +25,10 @@
end

end

describe "VERSION" do
it "should be kind of version" do
expect( FFI::VERSION ).to match(/^\d+\.\d+.\d+$/)
end
end
end

0 comments on commit 26a22ba

Please sign in to comment.