Sha256: 2266d7861df973aa119e7048e6ae45e4e27eadd39ac69afef70e6976c879fdb8
Contents?: true
Size: 351 Bytes
Versions: 1
Compression:
Stored size: 351 Bytes
Contents
require 'spec_helper' describe RSpec::Hive::DbName do describe '.random_name' do subject { described_class.random_name } before do allow(described_class).to receive(:timestamp) { 'timestamp' } allow(described_class).to receive(:random_key) { 'randomKey' } end it { is_expected.to eq('timestamp_randomKey') } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rspec-hive-0.1.0 | spec/lib/rspec/hive/db_name_spec.rb |