Sha256: 32913f659a34e15623d9cf136cbafbd5e9657ad32e00aade7cc653128a6fd8df

Contents?: true

Size: 306 Bytes

Versions: 4

Compression:

Stored size: 306 Bytes

Contents

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

require 'hamster/tuple'

describe Hamster::Tuple do

  describe "#first" do

    before do
      @tuple = Hamster::Tuple.new("A", "B")
    end

    it "returns the first value" do
      @tuple.first.should == "A"
    end

  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
hamster-0.2.5 spec/hamster/tuple/first_spec.rb
hamster-0.2.4 spec/hamster/tuple/first_spec.rb
hamster-0.2.3 spec/hamster/tuple/first_spec.rb
hamster-0.2.2 spec/hamster/tuple/first_spec.rb