Sha256: 272cdd35e834dd9db4aa3677f8976b2da2da8aae5566d68e6da0748c5c8be843
Contents?: true
Size: 422 Bytes
Versions: 3
Compression:
Stored size: 422 Bytes
Contents
require 'spec_helper' require 'python/pickle/tuple' describe Python::Pickle::Tuple do let(:elements) { [1,2,3] } subject { described_class.new(elements) } it "must inherit from Array" do expect(subject).to be_kind_of(Array) end describe "#inspect" do it "must include the class name and elements" do expect(subject.inspect).to eq("#<#{described_class}: #{elements.inspect}>") end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
python-pickle-0.2.0 | spec/tuple_spec.rb |
python-pickle-0.1.1 | spec/tuple_spec.rb |
python-pickle-0.1.0 | spec/tuple_spec.rb |