Sha256: 8048494b6ea2646048b6e9ee2581cdebb3215e8f7b793f4136175ad1d313bae1

Contents?: true

Size: 318 Bytes

Versions: 4

Compression:

Stored size: 318 Bytes

Contents

require "spec_helper"

describe NPR::Entity::Name do
  json_fixture do
    <<-JSON
      {
        "active": "true"
      }
    JSON
  end

  before :each do
    @stream = NPR::Entity::Stream.new(@fixture)
  end

  it "sets attributes" do
    @stream.active.should eq true
    @stream.active?.should eq true
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
npr-3.0.0 spec/unit/entity/stream_spec.rb
npr-2.0.2 spec/unit/entity/stream_spec.rb
npr-2.0.1 spec/unit/entity/stream_spec.rb
npr-2.0.0 spec/unit/entity/stream_spec.rb