Sha256: 500dd8d6236ccd2522e5e05ffb4b23bba9ca048d680e7b19d450ec2186c38c34
Contents?: true
Size: 529 Bytes
Versions: 5
Compression:
Stored size: 529 Bytes
Contents
require "spec_helper" describe NPR::Entity::Link do json_fixture do <<-JSON { "type": "html", "$text": "http://www.npr.org/blogs/thetwo-way/2012/12/11/167019068/sitar-virtuoso-ravi-shankar-dies-at-92?ft=3&f=167019577" } JSON end before :each do @link = NPR::Entity::Link.new(@fixture) end it "sets attributes" do @link.type.should eq "html" @link.content.should match /npr\.org/ end it "uses @content for to_s" do @link.to_s.should match /npr\.org/ end end
Version data entries
5 entries across 5 versions & 1 rubygems