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

Version Path
nyaplot-0.1.6 spec/nyaplot/database_spec.rb
nyaplot-0.1.5 spec/nyaplot/database_spec.rb
nyaplot-0.1.4 spec/nyaplot/database_spec.rb
nyaplot-0.2.0.rc1 spec/nyaplot/database_spec.rb
nyaplot-0.1.3 spec/nyaplot/database_spec.rb
nyaplot-0.1.2 spec/nyaplot/database_spec.rb
nyaplot-0.1.1 spec/nyaplot/database_spec.rb
nyaplot-0.1.0 spec/nyaplot/database_spec.rb