Sha256: 8078cb6ccdecd930004e8d22ccc3e27453561be3da80eba25e23d3e9a2fdc7ab
Contents?: true
Size: 620 Bytes
Versions: 4
Compression:
Stored size: 620 Bytes
Contents
require "spec_helper" describe NPR::Entity::Organization do json_fixture do <<-JSON { "orgId": "1", "orgAbbr": "NPR", "name": { "$text": "National Public Radio" }, "website": { "$text": "http://www.npr.org/" } } JSON end before :each do @organization = NPR::Entity::Organization.new(@fixture) end it "sets up attributes" do @organization.name.should match /National/ @organization.website.should match /npr\.org/ @organization.orgId.should eq 1 @organization.orgAbbr.should eq "NPR" end end
Version data entries
4 entries across 4 versions & 1 rubygems