require 'spec_helper' describe Excesselt::ElementWrapper do before do @stylesheet = Object.new @element = Object.new @builder = Object.new @wrapper = Excesselt::ElementWrapper.new(@stylesheet, @element, @builder) end describe "passing through method calls" do describe "when an error is raised in a passed through call" do it "should raise an error" do lambda { @wrapper.foo }.should raise_exception end end end end