Sha256: 15a924c9ef2c8b141dc98e41f8db6ebbd53ca135ffc262833b906f5fc1821980
Contents?: true
Size: 703 Bytes
Versions: 11
Compression:
Stored size: 703 Bytes
Contents
require 'spec_helper' shared_examples_for 'a raw element' do |clazz| before(:each) do @element = clazz.new end it 'has an underlying implementation representation - #raw_element' do @element.should respond_to(:raw_element) end it 'can get and set its underlying implementation representation - #raw_element, #raw_element=' do @element.raw_element = :some_raw_element @element.raw_element.should == :some_raw_element @element.raw_element = :some_other_raw_element @element.raw_element.should == :some_other_raw_element end it 'starts with no underlying implementation representation' do @element.raw_element.should == nil end end
Version data entries
11 entries across 11 versions & 2 rubygems