Sha256: 69856d1de064a78a5a960582948b3c57b55d215fb127c1de4715409a56b2c3cd

Contents?: true

Size: 575 Bytes

Versions: 1

Compression:

Stored size: 575 Bytes

Contents

require_relative '../spec_helper'

describe Ravelry::Misc do
  context '#color_families' do
    before do
      stub_color_families
    end

    it 'should return an array of color families' do
      result = Ravelry::Misc.color_families
      expect(result.first).to be_instance_of(Ravelry::ColorFamily)
    end
  end

  context '#yarn_weights' do
    before do
      stub_yarn_weights
    end

    it 'should return an array of color families' do
      result = Ravelry::Misc.yarn_weights
      expect(result.first).to be_instance_of(Ravelry::YarnWeight)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ravelry-0.0.7 spec/ravelry/misc_spec.rb