Sha256: f55a1174f9f517c19d60111398578ea67e9c23d8bfcf8c58bb4de101503cb600

Contents?: true

Size: 508 Bytes

Versions: 3

Compression:

Stored size: 508 Bytes

Contents

require 'helper'
require 'flipper/types/actor'

describe Flipper::Types::Actor do
  subject {
    Flipper::Types::Actor.new(2)
  }

  it "initializes with identifier" do
    actor = Flipper::Types::Actor.new(2)
    actor.should be_instance_of(Flipper::Types::Actor)
  end

  it "converts identifier to integer" do
    actor = Flipper::Types::Actor.new('2')
    actor.identifier.should eq(2)
  end

  it "has identifier" do
    actor = Flipper::Types::Actor.new(2)
    actor.identifier.should eq(2)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
flipper-0.2.0 spec/flipper/types/actor_spec.rb
flipper-0.1.1 spec/flipper/types/actor_spec.rb
flipper-0.1.0 spec/flipper/types/actor_spec.rb