Sha256: b7d267c19fe81223ea9c5049e8637d6b72f5112f9fb6bf2e6cf6d95698308111

Contents?: true

Size: 476 Bytes

Versions: 1

Compression:

Stored size: 476 Bytes

Contents

require "spec_helper"

require "hamster/queue"

describe Hamster::Queue do

  describe "#inspect" do

    [
      [[], "[]"],
      [["A"], "[\"A\"]"],
      [%w[A B C], "[\"A\", \"B\", \"C\"]"]
    ].each do |values, expected|

      describe "on #{values.inspect}" do

        before do
          @queue = Hamster.queue(*values)
        end

        it "returns #{expected.inspect}" do
          @queue.inspect.should == expected
        end

      end

    end

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hamster-1.0.1.pre.rc.1 spec/hamster/queue/inspect_spec.rb