Sha256: 44c96315ebd90bcca89362cf9c53b481c5619f56b51621cf0bda069cce533571

Contents?: true

Size: 388 Bytes

Versions: 3

Compression:

Stored size: 388 Bytes

Contents

require 'microby'

describe Microby do
  
  it { should respond_to :parse }
  
  describe "parsing a file" do
    let(:result) { Microby.parse(File.open("spec/support/example.html")) }
    
    it "should be a Microby object" do
      result.should be_an_instance_of Microby::HFeed
    end
    
    it "should have 2 enties" do
      result.entries.size.should eq 2
    end
    
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
microby-0.0.3 spec/lib/microby_spec.rb
microby-0.0.2 spec/lib/microby_spec.rb
microby-0.0.1 spec/lib/microby_spec.rb