Sha256: 32f572f105c2c97567345612e665ec0cb0bc145260e2a93119a99329bcc4c9de

Contents?: true

Size: 729 Bytes

Versions: 10

Compression:

Stored size: 729 Bytes

Contents

require_relative '../spec_helper'

describe Ravelry::Author do
  before do
    @author = Ravelry::Author.new(pattern_author)
  end

  it 'creates an instance of Author' do
    expect(@author).to be_instance_of(Ravelry::Author)
  end

  context 'has and sets reader attributes for' do
    it 'id' do
      expect(@author.id).to eq(@author.id)
    end

    it 'name' do
      expect(@author.name).to eq(@author.name)
    end

    it 'permalink' do
      expect(@author.permalink).to eq(@author.permalink)
    end

    it 'patterns_count' do
      expect(@author.patterns_count).to eq(@author.patterns_count)
    end

    it 'favorites_count' do
      expect(@author.favorites_count).to eq(@author.favorites_count)
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ravelry-0.2.0 spec/ravelry/author_spec.rb
ravelry-0.1.0 spec/ravelry/author_spec.rb
ravelry-0.0.9 spec/ravelry/author_spec.rb
ravelry-0.0.8 spec/ravelry/author_spec.rb
ravelry-0.0.7 spec/ravelry/author_spec.rb
ravelry-0.0.6 spec/ravelry/author_spec.rb
ravelry-0.0.5 spec/ravelry/author_spec.rb
ravelry-0.0.4 spec/ravelry/author_spec.rb
ravelry-0.0.2 spec/ravelry/author_spec.rb
ravelry-0.0.1 spec/ravelry/author_spec.rb