Sha256: 079054079ac2be23e64ee5bfb07b94060d0ba765014374aceeb1e6ece8ac5274

Contents?: true

Size: 785 Bytes

Versions: 12

Compression:

Stored size: 785 Bytes

Contents

require 'spec_helper'

describe Museum::Loupe do
  include_context 'loupe support'
  include_context 'case support'

  it { should respond_to(:friendly_id) }
  it { should validate_presence_of(:title) }

  describe '#id_by_slug' do
    subject { Museum::Loupe.id_by_slug('rubygems') }
    it { should be_an Integer}
  end

  describe '#magnify' do
    subject { rubygems.magnify(dummy_package) }
    it { should be_a Hash }
  end

  describe '#url' do
    subject { rubygems.url(dummy_package) }
    it { should be_a String }
  end

  describe '#response' do
    subject { rubygems.response(dummy_package) }
    it { should be_a String }
  end

  describe '#parse_as' do
    subject { rubygems.parse_as('json', rubygems.response(dummy_package) ) }
    it { should be_a Hash }
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
museum-0.3.0 spec/models/loupe_spec.rb
museum-0.2.2 spec/models/loupe_spec.rb
museum-0.1.5 spec/models/loupe_spec.rb
museum-0.1.4 spec/models/loupe_spec.rb
museum-0.1.3 spec/models/loupe_spec.rb
museum-0.1.2 spec/models/loupe_spec.rb
museum-0.1.1 spec/models/loupe_spec.rb
museum-0.1.0 spec/models/loupe_spec.rb
museum-0.0.4 spec/models/loupe_spec.rb
museum-0.0.3 spec/models/loupe_spec.rb
museum-0.0.2 spec/models/loupe_spec.rb
museum-0.0.1 spec/models/loupe_spec.rb