Sha256: 309ff13befe68fa5821f91594cfb7b1e334fb9bd90a547d23a408760c2eb6dca

Contents?: true

Size: 389 Bytes

Versions: 7

Compression:

Stored size: 389 Bytes

Contents

require 'spec_helper'

module PaperTrailScrapbook
  ::RSpec.describe Config do
    describe '.instance' do
      it 'returns the singleton instance' do
        expect { described_class.instance }.not_to raise_error
      end
    end

    describe '.new' do
      it 'raises NoMethodError' do
        expect { described_class.new }.to raise_error(NoMethodError)
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
paper_trail_scrapbook-0.1.7 spec/paper_trail_scrapbook/config_spec.rb
paper_trail_scrapbook-0.1.6 spec/paper_trail_scrapbook/config_spec.rb
paper_trail_scrapbook-0.1.3 spec/paper_trail_scrapbook/config_spec.rb
paper_trail_scrapbook-0.1.2 spec/paper_trail_scrapbook/config_spec.rb
paper_trail_scrapbook-0.1.1 spec/paper_trail_scrapbook/config_spec.rb
paper_trail_scrapbook-0.1.0 spec/paper_trail_scrapbook/config_spec.rb
paper_trail_scrapbook-0.0.2 spec/paper_trail_scrapbook/config_spec.rb