Sha256: 74b6a85c8ec98ad667aebc8b212b47fb224cb92026dc59701f5b994576162ada

Contents?: true

Size: 436 Bytes

Versions: 11

Compression:

Stored size: 436 Bytes

Contents

require File.dirname(__FILE__) + '/spec_helper'

describe Slippers::BindingWrapper do
  def f
      @a = 22
      @b = 33
      binding
  end
  
  it "should evaluate the bindings" do
    bindings_wrapper = Slippers::BindingWrapper.new(f())
    bindings_wrapper['a'].should eql(22)
  end

  it "should evaluate the bindings" do
    bindings_wrapper = Slippers::BindingWrapper.new(f())
    bindings_wrapper['z'].should eql(nil)
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
starapor-slippers-0.0.2 spec/binding_wrapper.rb
starapor-slippers-0.0.3 spec/binding_wrapper.rb
starapor-slippers-0.0.5 spec/binding_wrapper.rb
starapor-slippers-0.0.6 spec/binding_wrapper.rb
starapor-slippers-0.0.8 spec/binding_wrapper.rb
starapor-slippers-0.0.9 spec/binding_wrapper.rb
slippers-0.0.14 spec/binding_wrapper.rb
slippers-0.0.13 spec/binding_wrapper.rb
slippers-0.0.12 spec/binding_wrapper.rb
slippers-0.0.11 spec/binding_wrapper.rb
slippers-0.0.10 spec/binding_wrapper.rb