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

Version Path
cuboid-0.2.11 spec/cuboid/option_groups/report_spec.rb
cuboid-0.2.10 spec/cuboid/option_groups/report_spec.rb
cuboid-0.2.9 spec/cuboid/option_groups/report_spec.rb
cuboid-0.2.8 spec/cuboid/option_groups/report_spec.rb
cuboid-0.2.7 spec/cuboid/option_groups/report_spec.rb
cuboid-0.2.6 spec/cuboid/option_groups/report_spec.rb
cuboid-0.2.5 spec/cuboid/option_groups/report_spec.rb
cuboid-0.2.4.2 spec/cuboid/option_groups/report_spec.rb
cuboid-0.2.4.1 spec/cuboid/option_groups/report_spec.rb
cuboid-0.2.4 spec/cuboid/option_groups/report_spec.rb
cuboid-0.2.3 spec/cuboid/option_groups/report_spec.rb
cuboid-0.2.2 spec/cuboid/option_groups/report_spec.rb
cuboid-0.2.1 spec/cuboid/option_groups/report_spec.rb
cuboid-0.2 spec/cuboid/option_groups/report_spec.rb
cuboid-0.1.9.1 spec/cuboid/option_groups/report_spec.rb
cuboid-0.1.9 spec/cuboid/option_groups/report_spec.rb
cuboid-0.1.8 spec/cuboid/option_groups/report_spec.rb
cuboid-0.1.7 spec/cuboid/option_groups/report_spec.rb
cuboid-0.1.6.1 spec/cuboid/option_groups/report_spec.rb
cuboid-0.1.6 spec/cuboid/option_groups/report_spec.rb