Sha256: e7ffd9af9141cd76439e4fb64f4b47d46b4335d4ecad18dcaf596f34467a2177

Contents?: true

Size: 441 Bytes

Versions: 4

Compression:

Stored size: 441 Bytes

Contents

require 'spec_helper'

RSpec.describe "Span" do
  context "start_date & end_date" do
    let(:span_model) { SpanModel.new(:start_date => Date.current, :end_date => Date.current + 1) }
    let(:span) { span_model.span }

    it "should return the start_date" do
      expect(span.start_date).to eq(span_model.start_date)
    end

    it "should return the end_date" do
      expect(span.end_date).to eq(span_model.end_date)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
acts_as_span-1.1.1 spec/lib/span_instance_spec.rb
acts_as_span-1.1.0 spec/lib/span_instance_spec.rb
acts_as_span-1.0.0 spec/lib/span_instance_spec.rb
acts_as_span-0.0.6 spec/lib/span_instance_spec.rb