summaryrefslogtreecommitdiff
path: root/spec/ruby/optional/capi/binding_spec.rb
blob: 5d0ef2efb87dba4d08cfd0b72dda6d84a5e853b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
require_relative 'spec_helper'

load_extension("binding")

describe "CApiBindingSpecs" do
  before :each do
    @b = CApiBindingSpecs.new
  end

  describe "Kernel#binding" do
    it "raises when called from C" do
      foo = 14
      -> { @b.get_binding }.should raise_error(RuntimeError)
    end
  end
end