Sha256: 9e3e9a37c75e41c7292c8ba288a4d245e78edb655bc532f65a31bed357e22092
Contents?: true
Size: 697 Bytes
Versions: 32
Compression:
Stored size: 697 Bytes
Contents
require 'spec_helper' describe Cuboid::OptionGroups::Report 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['reports']" do it 'returns it' do allow(Cuboid::OptionGroups::Paths).to receive(:config) do { 'reports' => Dir.tmpdir } end expect(subject.path).to eq(Dir.tmpdir + '/') end end end end
Version data entries
32 entries across 32 versions & 1 rubygems