Sha256: 03c49ea9afd337156e1911addfd22f410a4b48b9f4403ce812fc8ffabcab01a8

Contents?: true

Size: 480 Bytes

Versions: 3

Compression:

Stored size: 480 Bytes

Contents

require 'spec_helper'

describe RSLT::ElementWrapper do

  before do
    @stylesheet = Object.new
    @element = Object.new
    @builder = Object.new
    @wrapper = RSLT::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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rslt-1.1.10 spec/element_wrapper_spec.rb
rslt-1.1.9 spec/element_wrapper_spec.rb
rslt-1.1.8 spec/element_wrapper_spec.rb