Sha256: c7894a37f61c470af627fdf86b5da9172b59940d4891495e8ddd19b977fc6e28
Contents?: true
Size: 616 Bytes
Versions: 11
Compression:
Stored size: 616 Bytes
Contents
require 'spec_helper' describe Wombat::Metadata do before(:each) do @metadata = Wombat::Metadata.new end it 'should not include non-properties in all properties list' do @metadata.another_property "/some/selector", :text @metadata.base_url "felipecsl.com" @metadata.list_page "/yeah" @metadata.all_properties.should == [@metadata['another_property']] end it 'should store iterators' do @metadata.for_each("some_selector").kind_of?(Wombat::Iterator).should be_true @metadata.iterators.size.should == 1 @metadata.iterators.first.selector.should == "some_selector" end end
Version data entries
11 entries across 11 versions & 1 rubygems