Sha256: 6388016f7942eee77d540268d7a55a56942cbfecba3e5d5b6914886565cff248

Contents?: true

Size: 335 Bytes

Versions: 5

Compression:

Stored size: 335 Bytes

Contents

module RequestHelpers
  # Helpers that stub out requests to misc endpoints

  def stub_color_families
    stub_request_with_fixture(
      %r{/color_families\.json},
      'color_families.json'
    )
  end

  def stub_yarn_weights
    stub_request_with_fixture(
      %r{/yarn_weights\.json},
      'yarn_weights.json'
    )
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ravelry-0.2.0 spec/helpers/request_helpers/misc_helpers.rb
ravelry-0.1.0 spec/helpers/request_helpers/misc_helpers.rb
ravelry-0.0.9 spec/helpers/request_helpers/misc_helpers.rb
ravelry-0.0.8 spec/helpers/request_helpers/misc_helpers.rb
ravelry-0.0.7 spec/helpers/request_helpers/misc_helpers.rb