Sha256: 5dacf927cf99cfef5b4a3a0139c8a478ffe2d840c85f109934d1160997ca2005
Contents?: true
Size: 488 Bytes
Versions: 8
Compression:
Stored size: 488 Bytes
Contents
require 'spec_helper' describe Nyaplot::DataBase do context ".instance" do it "should return the instance of DataBase" do expect(Nyaplot::DataBase.instance.is_a? Singleton).to eq(true) end end context ".add" do it "should register dataframe specified in the first argument to database" do df = Nyaplot::DataFrame.new({a: [0,1,2]}) Nyaplot::DataBase.instance.add(df) expect(Nyaplot::DataBase.instance.fetch(df.name)).to eq(df) end end end
Version data entries
8 entries across 8 versions & 1 rubygems