Sha256: b89c41acbe99af7b9a879c1139fe7118cb382d316a1ad13ae7f9c758196a299b

Contents?: true

Size: 614 Bytes

Versions: 15

Compression:

Stored size: 614 Bytes

Contents

require 'spec_helper'
module IcalImporter
  describe DateExclusion do
    subject { DateExclusion.new(date) }
    describe "#initialize" do
      describe "set the one valid attribute" do
        let(:date) {  "yerp" }
        it "sets the date exlcusion" do
          subject.date_exclusion.should == "yerp"
        end
      end

      describe "try to set valid/invalid attributes" do
        let(:date) { "yerp" }
        it "sets the date exlcusion" do
          subject.date_exclusion.should == "yerp"
          expect { subject.not_me }.to raise_error(NoMethodError)
        end
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
ical_importer-0.5.1 spec/ical_importer/date_exclusion_spec.rb
ical_importer-0.5.0 spec/ical_importer/date_exclusion_spec.rb
ical_importer-0.4.0 spec/ical_importer/date_exclusion_spec.rb
ical_importer-0.3.0 spec/ical_importer/date_exclusion_spec.rb
ical_importer-0.2.0 spec/ical_importer/date_exclusion_spec.rb
ical_importer-0.1.3 spec/ical_importer/date_exclusion_spec.rb
ical_importer-0.1.2 spec/ical_importer/date_exclusion_spec.rb
ical_importer-0.1.1 spec/ical_importer/date_exclusion_spec.rb
ical_importer-0.1.0 spec/ical_importer/date_exclusion_spec.rb
ical_importer-0.0.19 spec/ical_importer/date_exclusion_spec.rb
ical_importer-0.0.18 spec/ical_importer/date_exclusion_spec.rb
ical_importer-0.0.17 spec/ical_importer/date_exclusion_spec.rb
ical_importer-0.0.16 spec/ical_importer/date_exclusion_spec.rb
ical_importer-0.0.15 spec/ical_importer/date_exclusion_spec.rb
ical_importer-0.0.14 spec/ical_importer/date_exclusion_spec.rb