Sha256: 5c9f6ec9b5a9d20351422051133f4a21ed978f899b11864b93022a2fccce6d31
Contents?: true
Size: 705 Bytes
Versions: 1
Compression:
Stored size: 705 Bytes
Contents
require 'spec_helper' require 'ronin/database' describe Database do describe "repositories" do it "should not be empty" do expect(subject.repositories).not_to be_empty end it "should have a ':default' repository" do expect(subject.repositories[:default]).not_to be_nil end end it "shold determine if a repository is defined" do expect(subject.repository?(:default)).to be(true) end it "should determine when a repository is setup" do expect(subject.setup?(:default)).to be(true) end it "should not allow switching to unknown repositories" do expect { subject.repository(:foo) { } }.to raise_error(Database::UnknownRepository) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ronin-1.5.1 | spec/database_spec.rb |