Sha256: 2b9e1fe10d3568df26261ed5989a6e760735157994c3ec72f2b9699abff083e7
Contents?: true
Size: 423 Bytes
Versions: 5
Compression:
Stored size: 423 Bytes
Contents
require 'test_helper' describe "Extension with globally available functions" do specify "should make functions available" do Extension.new "functions" do |e| e.sources full_dir("headers/functions.h") e.namespace "functions" end require 'functions' lambda { test1 }.should_not raise_error(NameError) test2(2.0).should be_within(0.001).of(1.0) test3(2, 4.2).should == 2 end end
Version data entries
5 entries across 5 versions & 1 rubygems