require 'spec_helper'

module Wimdu
  module Partner
    describe PriceDetail do
      subject(:price_detail) { Wimdu::Partner::PriceDetail.new }
      let(:price_response) { double('price_response', price: 99.45) }

      describe '.from_price_response' do
        it 'returns PriceDetails object initialized with price in cents' do
          pd = described_class.from_price_response(price_response)
          pd.price.should === 9945
        end
      end
    end
  end
end

