Sha256: 11023dbf57fc1e5c4f3b51df11221a0679318891f6b372e50417ceb0b27fff9c
Contents?: true
Size: 703 Bytes
Versions: 34
Compression:
Stored size: 703 Bytes
Contents
require 'spec_helper' describe Cuboid::OptionGroups::Snapshot do include_examples 'option_group' subject { described_class.new } %w(path).each do |method| it { is_expected.to respond_to method } it { is_expected.to respond_to "#{method}=" } end describe '#path' do context "when #{Cuboid::OptionGroups::Paths}.config['snapshots']" do it 'returns it' do allow(Cuboid::OptionGroups::Paths).to receive(:config) do { 'snapshots' => Dir.tmpdir } end expect(subject.path).to eq(Dir.tmpdir + '/') end end end end
Version data entries
34 entries across 34 versions & 1 rubygems