Sha256: d6b117080c80a5d86d9b7f26e3ac082ca2d48e09f0444a7f25e7b389aa88431b

Contents?: true

Size: 995 Bytes

Versions: 24

Compression:

Stored size: 995 Bytes

Contents

require 'spec_helper'
module IcalImporter
  describe SingleEventBuilder do
    subject { SingleEventBuilder.new(event) }
    let(:event) { RiCal.parse(sample_ics('mn_twins')).first.events.first }
    describe "#build" do
      it "builds an event" do
        new_event = subject.build
        new_event.should be_a LocalEvent
        new_event.title.should == "Spring Training: Tampa Bay 3 - Minnesota 7"
        new_event.utc?.should == true
        new_event.description.should == "Spring Training: Tampa Bay 3 - Minnesota 7\n\nClick below for game previews, wraps and boxscores plus video, tickets, stats, gameday and more!\nhttp://mlb.mlb.com/mlb/gameday/index.jsp?gid=2012_03_03_tbamlb_minmlb_1\n\nWatch or Listen with MLB.TV: http://mlb.mlb.com/schedule/index.jsp?c_id=min&m=03&y=2012\n\nLocal Radio: 1500 ESPN"
        new_event.location.should == "Lee County Sports Complex, Hammond County Stadium, Lee County"
        new_event.all_day_event.should == false
      end
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
ical_importer-0.2.0 spec/ical_importer/single_event_builder_spec.rb
ical_importer-0.1.3 spec/ical_importer/single_event_builder_spec.rb
ical_importer-0.1.2 spec/ical_importer/single_event_builder_spec.rb
ical_importer-0.1.1 spec/ical_importer/single_event_builder_spec.rb
ical_importer-0.1.0 spec/ical_importer/single_event_builder_spec.rb
ical_importer-0.0.19 spec/ical_importer/single_event_builder_spec.rb
ical_importer-0.0.18 spec/ical_importer/single_event_builder_spec.rb
ical_importer-0.0.17 spec/ical_importer/single_event_builder_spec.rb
ical_importer-0.0.16 spec/ical_importer/single_event_builder_spec.rb
ical_importer-0.0.15 spec/ical_importer/single_event_builder_spec.rb
ical_importer-0.0.14 spec/ical_importer/single_event_builder_spec.rb
ical_importer-0.0.13 spec/ical_importer/single_event_builder_spec.rb
ical_importer-0.0.12 spec/ical_importer/single_event_builder_spec.rb
ical_importer-0.0.11 spec/ical_importer/single_event_builder_spec.rb
ical_importer-0.0.10 spec/ical_importer/single_event_builder_spec.rb
ical_importer-0.0.9 spec/ical_importer/single_event_builder_spec.rb
ical_importer-0.0.8 spec/ical_importer/single_event_builder_spec.rb
ical_importer-0.0.7 spec/ical_importer/single_event_builder_spec.rb
ical_importer-0.0.6 spec/ical_importer/single_event_builder_spec.rb
ical_importer-0.0.5 spec/ical_importer/single_event_builder_spec.rb