Sha256: e07aa198f24ddc80450956a610a3b90fb79fef0d46b6c7533ef07a5341819c4a

Contents?: true

Size: 740 Bytes

Versions: 14

Compression:

Stored size: 740 Bytes

Contents

# -*- coding: utf-8 -*-
require 'hiroshimarb/member'

module Hiroshimarb
  describe Member do
    describe '.all' do
      subject { Member.all }
      it "1件以上のデータがある" do
        expect(subject.count).to be > 1
      end
    end

    describe '#to_s' do
      subject { member.to_s }

      let(:member) do
        m = Member.new
        m.name = 'ruby Hiroshima'
        m.github = 'hiroshimarb'
        m.website = 'http://hiroshimarb.github.com/'
        m.profile = 'Hiroshima.rb'
        m
      end

      it do
        should eq(<<EOD)
   name       ruby Hiroshima
   github id  hiroshimarb
   twitter id 
   website    http://hiroshimarb.github.com/
   profile
     Hiroshima.rb
EOD
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
hiroshimarb-0.2.5 spec/hiroshimarb/member_spec.rb
hiroshimarb-0.2.4 spec/hiroshimarb/member_spec.rb
hiroshimarb-0.2.3 spec/hiroshimarb/member_spec.rb
hiroshimarb-0.2.2 spec/hiroshimarb/member_spec.rb
hiroshimarb-0.2.1 spec/hiroshimarb/member_spec.rb
hiroshimarb-0.2.0 spec/hiroshimarb/member_spec.rb
hiroshimarb-0.1.4 spec/hiroshimarb/member_spec.rb
hiroshimarb-0.1.3 spec/hiroshimarb/member_spec.rb
hiroshimarb-0.1.2 spec/hiroshimarb/member_spec.rb
hiroshimarb-0.1.1 spec/hiroshimarb/member_spec.rb
hiroshimarb-0.1.0 spec/hiroshimarb/member_spec.rb
hiroshimarb-0.0.4 spec/hiroshimarb/member_spec.rb
hiroshimarb-0.0.3 spec/hiroshimarb/member_spec.rb
hiroshimarb-0.0.2 spec/hiroshimarb/member_spec.rb