Sha256: 08bc71e5e4c831d8cca5f57a7e9181a6e32491c5a851b286140357ebc3211ece

Contents?: true

Size: 670 Bytes

Versions: 3

Compression:

Stored size: 670 Bytes

Contents

require 'spec_helper'

describe Fletcher, :vcr do
  describe :fetch, :vcr do
   
  end 
end 

describe Fletcher::Model::Steam, :vcr do
  describe "parse" do
    context "with valid data" do
      it "should return correct model info" do
        model = described_class.new
        model.parse Fletcher::Data.read(Factory(:steam).url)
        model.doc = nil
        model.description = ''
        model.name.should_not be_nil
        model.description.should_not be_nil
        model.description.class.should == String
        model.price.should_not be_nil
        model.image.should_not be_nil
        model.images.should_not be_empty
      end       
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fletcher-0.6.0 spec/lib/fletcher/models/steam_spec.rb
fletcher-0.5.2 spec/lib/fletcher/models/steam_spec.rb
fletcher-0.5.1 spec/lib/fletcher/models/steam_spec.rb