Sha256: 121576474b7ca5e42efb9eb5a6f42082d6236160a6ff07867001316ed2ca5d0f

Contents?: true

Size: 491 Bytes

Versions: 9

Compression:

Stored size: 491 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')

require 'hamster/set'

describe Hamster::Set do

  describe "#to_set" do

    [
      [],
      ["A"],
      ["A", "B", "C"],
    ].each do |values|

      describe "on #{values.inspect}" do

        before do
          @original = Hamster.set(*values)
          @result = @original.to_set
        end

        it "returns self" do
          @result.should equal(@original)
        end

      end

    end

  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
hamster-0.2.5 spec/hamster/set/to_set_spec.rb
hamster-0.2.4 spec/hamster/set/to_set_spec.rb
hamster-0.2.3 spec/hamster/set/to_set_spec.rb
hamster-0.2.2 spec/hamster/set/to_set_spec.rb
hamster-0.2.1 spec/hamster/set/to_set_spec.rb
hamster-0.2.0 spec/hamster/set/to_set_spec.rb
hamster-0.1.23 spec/hamster/set/to_set_spec.rb
hamster-0.1.22 spec/hamster/set/to_set_spec.rb
hamster-0.1.21 spec/hamster/set/to_set_spec.rb