Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (17 sloc) 0.491 kb
require 'spec_helper'
module WLang
class Scope
describe NullScope do
let(:scope){ NullScope.new }
it 'throws on fetch' do
lambda{ scope.fetch(:who) }.should throw_symbol(:fail)
end
it 'throws on fetch even on `self`' do
lambda{ scope.fetch(:self) }.should throw_symbol(:fail)
end
it 'raises on pop' do
lambda{ scope.pop }.should raise_error
end
end # describe ProxyScope
end # class Scope
end # module WLang
Jump to Line
Something went wrong with that request. Please try again.