Sha256: b7741177909f94104cd0c57476f890990aef70f2cf3b7287c6f4dd436d2c6493
Contents?: true
Size: 594 Bytes
Versions: 5
Compression:
Stored size: 594 Bytes
Contents
require "spec_helper" describe NPR::Entity::Program do json_fixture do <<-JSON { "id": "3", "code": "ME", "$text": "Morning Edition" } JSON end before :each do @program = NPR::Entity::Program.new(@fixture) end it "sets up attributes" do @program.id.should be_a Integer @program.code.should eq "ME" @program.content.should eq "Morning Edition" end it "uses @content for to_s" do @program.to_s.should eq "Morning Edition" end it "responds to title" do @program.title.should eq "Morning Edition" end end
Version data entries
5 entries across 5 versions & 1 rubygems