Sha256: 182f5248227d0250d9e68d612995a2aa20854ad9dc5349a7f5adcff685b91767
Contents?: true
Size: 519 Bytes
Versions: 5
Compression:
Stored size: 519 Bytes
Contents
require 'spec_helper' require './lib/marver.rb' describe Marver::Url do let(:json) { { "type" => "wiki", "url" => "http://marvel.com/universe/Hulk_(Bruce_Banner)?utm_campaign=apiRef&utm_source=f302f582215c3deedff86e8015f853c7" } } let(:url) { Marver::Url.new(json) } it '#type - description' do expect(url.type).to eq "wiki" end it '#url - raw url' do expect(url.url).to eq "http://marvel.com/universe/Hulk_(Bruce_Banner)?utm_campaign=apiRef&utm_source=f302f582215c3deedff86e8015f853c7" end end
Version data entries
5 entries across 5 versions & 1 rubygems