Sha256: 280273ecafbdc9fa15052e19ab8e47b25c6d6912c359d0e7c7169a1147f2d90e

Contents?: true

Size: 493 Bytes

Versions: 1

Compression:

Stored size: 493 Bytes

Contents

# -*- coding: utf-8 -*-
require 'spec_helper'
require 'hiroshimarb/event'

module Hiroshimarb
  describe Event do
    describe '.all' do
      subject { Event.all }
      it { should have(8).items }
    end

    describe '.recent' do
      subject { Event.recent }
      its(:title) { should eq('広島Ruby勉強会 #034') }
      it '日付は2013年 9月7日' do
        date = subject.start_datetime
        expect(date.strftime('%Y-%m-%d')).to eq('2013-09-07')
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hiroshimarb-0.2.8 spec/hiroshimarb/event_spec.rb