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

Version Path
wombat-1.0.0 spec/metadata_spec.rb
wombat-0.5.0 spec/metadata_spec.rb
wombat-0.4.0 spec/metadata_spec.rb
wombat-0.3.1 spec/metadata_spec.rb
wombat-0.3.0 spec/metadata_spec.rb
wombat-0.2.5 spec/metadata_spec.rb
wombat-0.2.4 spec/metadata_spec.rb
wombat-0.2.3 spec/metadata_spec.rb
wombat-0.2.2 spec/metadata_spec.rb
wombat-0.2.0 spec/metadata_spec.rb
wombat-0.1.6 spec/metadata_spec.rb