require 'spec_helper'

describe Hotchoc::Blocks::Image do
  let(:data) do
    JSON.parse(File.read(response_stub('albums'))).first['blocks'].first
  end

  let(:block) do
    described_class.new(data)
  end

  it 'has a title' do
    expect(block.title).to be
  end

  it 'has an image' do
    expect(block.image).to be_a(Hotchoc::File)
  end
end
