Sha256: c0a86719bbde79eb3f6f47fc2b93d53394262a17b12f4d87c4278fbaf9648ba5
Contents?: true
Size: 782 Bytes
Versions: 4
Compression:
Stored size: 782 Bytes
Contents
require "spec_helper" describe NPR::Entity::IntroText do json_fixture do <<-JSON { "num": "5", "$text": "<p>A sweeping space opera, <em>2312</em> is about what happens to humanity once we've truly conquered the solar system. Humans have colonized most of the planets and moons in our local volume of space, and it's the end of an interplanetary age of exploration. Political powers are consolidating their territories.</p>" } JSON end before :each do @intro_text = NPR::Entity::IntroText.new(@fixture) end it "sets attributes" do @intro_text.num.should eq 5 @intro_text.content.should match /sweeping space opera/ end it "uses @content for to_s" do @intro_text.to_s.should eq @intro_text.content end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
npr-1.1.0 | spec/unit/entity/intro_text_spec.rb |
npr-0.1.2 | spec/unit/entity/intro_text_spec.rb |
npr-0.1.1 | spec/unit/entity/intro_text_spec.rb |
npr-0.1.0 | spec/unit/entity/intro_text_spec.rb |