Sha256: c4a063ef3b4ec99606bca2f9ef26fc4e821eebda46dff1d51f617d8b92aecd5e

Contents?: true

Size: 827 Bytes

Versions: 2

Compression:

Stored size: 827 Bytes

Contents

require 'spec_helper'

describe Thema do
  it 'should have a name' do
    expect(Thema.new('Hard Rock').name).to eq('Hard Rock')
  end

  it 'should accept urls too' do
    expect(Thema.new('Hard Rock', ['hr.com']).urls).to include('http://hr.com')
  end

  it 'should convert urls to aranea' do
    expect(Thema.new('HR', ['hr.com']).araneas.first).to be_a(Aranea)
  end

  it 'should have many memorias' do
    expect(Thema.new('Foo').memorias).to be_an(Array)
  end

  it 'should access memorias by type' do
    expect(Thema.new('Foo')).to respond_to(:emails)
  end

  it 'should access sites by type' do
    expect(Thema.new('Foo')).to respond_to(:sites)
  end

  it 'should accept a site' do
    th = Thema.new('Ruby')
    th.sites << Memoria::Site.new('http://ruby-lang.org')
    expect(th.sites.size).to eq(1)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ubi-0.0.8 spec/ubi/thema_spec.rb
ubi-0.0.7 spec/ubi/thema_spec.rb