Sha256: 51482c5d116c9174b631ee6a01a1afe317978cb4a8f3e112a45a67c4eb522e00
Contents?: true
Size: 904 Bytes
Versions: 1
Compression:
Stored size: 904 Bytes
Contents
require 'spec_helper' describe Ferver::Configuration do subject { described_class.new } describe 'configured directory path' do context 'with no path set' do it 'should return default path' do expect(subject.directory_path).to eq(Ferver::DEFAULT_FILE_SERVER_DIR_PATH) end end context 'when directory is set' do let(:path) { '/foo/bar' } it 'should return default path' do subject.directory_path = path expect(subject.directory_path).to eq(path) end end end describe "serving all files" do context "with no configuration set" do it "is false by default" do expect(subject.serve_hidden?).to be false end end context "when configured to serve hidden" do it "is true" do subject.serve_hidden = true expect(subject.serve_hidden?).to be true end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ferver-1.3.0 | spec/configuration_spec.rb |