Sha256: ee439bf45b102ba254e24c73415aa81ec12979e2687e022a09a2e1931762aeb8

Contents?: true

Size: 770 Bytes

Versions: 5

Compression:

Stored size: 770 Bytes

Contents

require_relative '../spec_helper'

describe Ravelry::Needles do
  context '#sizes' do
    before do
      stub_needles_sizes
    end

    it 'should return an array of needles' do
      result = Ravelry::Needles.sizes
      expect(result.first).to be_instance_of(Ravelry::Needle)
    end
  end

  context '#types' do
    before do
      stub_needles_types
    end

    it 'should return an array of needles' do
      result = Ravelry::Needles.types
      expect(result.first).to be_instance_of(Ravelry::Needle)
    end
  end

  context '#list' do
    before do
      stub_needles_list
    end

    it 'should return an array of needles' do
      result = Ravelry::Needles.list("feministy")
      expect(result.first).to be_instance_of(Ravelry::Needle)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ravelry-0.2.0 spec/ravelry/needles_spec.rb
ravelry-0.1.0 spec/ravelry/needles_spec.rb
ravelry-0.0.9 spec/ravelry/needles_spec.rb
ravelry-0.0.8 spec/ravelry/needles_spec.rb
ravelry-0.0.7 spec/ravelry/needles_spec.rb