Sha256: 10c64042107e52aaa94ffdbf5be86677ae1012332e156b2055fc5c23c8dddced

Contents?: true

Size: 315 Bytes

Versions: 14

Compression:

Stored size: 315 Bytes

Contents

require 'spec_helper'
module WLang
  describe Dialect, 'with_scope' do

    let(:struct){ Struct.new(:who) }

    it 'returns the block value' do
      got = Dialect.new.with_scope({:who => "World"}) do
        12
      end
      got.should eq(12)
    end

  end # describe Dialect, 'with_scope'
end # module WLang

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
wlang-3.0.1 spec/unit/dialect/test_with_scope.rb
wlang-3.0.0 spec/unit/dialect/test_with_scope.rb
wlang-2.3.1 spec/unit/dialect/test_with_scope.rb
wlang-2.3.0 spec/unit/dialect/test_with_scope.rb
wlang-2.2.4 spec/unit/dialect/test_with_scope.rb
wlang-2.2.3 spec/unit/dialect/test_with_scope.rb
wlang-2.2.2 spec/unit/dialect/test_with_scope.rb
wlang-2.2.1 spec/unit/dialect/test_with_scope.rb
wlang-2.2.0 spec/unit/dialect/test_with_scope.rb
wlang-2.1.2 spec/unit/dialect/test_with_scope.rb
wlang-2.1.1 spec/unit/dialect/test_with_scope.rb
wlang-2.1.0 spec/unit/dialect/test_with_scope.rb
wlang-2.0.1 spec/unit/dialect/test_with_scope.rb
wlang-2.0.0 spec/unit/dialect/test_with_scope.rb