Sha256: 31884dca7a57ce17d32aee9d529d197ec95f88eb9157e58dab360941f3e1a4fe
Contents?: true
Size: 455 Bytes
Versions: 1
Compression:
Stored size: 455 Bytes
Contents
require 'spec_helper' describe Fappu::Page do describe "#new_from_json" do let(:args) { {'1' => {'image' => 'http://a.url.com', 'thumb' => 'http://a.thumb_url.com'}}} subject{ described_class.new_from_json(args) } it { is_expected.to be_an_instance_of(described_class) } it { is_expected.to have_attributes( page_number: '1', image_url: 'http://a.url.com', thumbnail_url: 'http://a.thumb_url.com' )} end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fappu-1.0.0 | spec/lib/fappu/page_spec.rb |