Sha256: ae3a0987d481580e73e23d249644e63a6ce985d0a7f1afb133258d2256af0a0c
Contents?: true
Size: 610 Bytes
Versions: 5
Compression:
Stored size: 610 Bytes
Contents
require "spec_helper" describe NPR::Entity::Paragraph do json_fixture do <<-JSON { "num": "1", "$text": "Louisiana music has such a hold on music lovers around the world that nearly every popular artist borrows from it. Or replicates it. Or, some might say, steals from it." } JSON end before :each do @paragraph = NPR::Entity::Paragraph.new(@fixture) end it "sets up attributes" do @paragraph.num.should eq 1 @paragraph.content.should match /Louisiana/ end it "uses @content for to_s" do @paragraph.to_s.should match /Louisiana/ end end
Version data entries
5 entries across 5 versions & 1 rubygems