Sha256: ea8f5bc9c5ba098536c53cb7611781e62c3719a463d89b1621dfbea721bfccbe
Contents?: true
Size: 443 Bytes
Versions: 5
Compression:
Stored size: 443 Bytes
Contents
require "spec_helper" describe NPR::Entity::Name do json_fixture do <<-JSON { "personId": "134991966", "$text": "Julie Bierach" } JSON end before :each do @name = NPR::Entity::Name.new(@fixture) end it "sets attributes" do @name.personId.should eq 134991966 @name.content.should match /Julie/ end it "uses @content for to_s" do @name.to_s.should eq @name.content end end
Version data entries
5 entries across 5 versions & 1 rubygems