Sha256: 2b6fab3059af885185edf740a3d0d93cf6512b9b571355c6ed634628439ab6a4
Contents?: true
Size: 915 Bytes
Versions: 10
Compression:
Stored size: 915 Bytes
Contents
require 'spec_helper' describe Gush do describe ".gushfile" do let(:path) { Pathname("/tmp/Gushfile.rb") } context "Gushfile is missing from pwd" do it "returns nil" do path.delete if path.exist? Gush.configuration.gushfile = path expect(Gush.gushfile).to eq(nil) end end context "Gushfile exists" do it "returns Pathname to it" do FileUtils.touch(path) Gush.configuration.gushfile = path expect(Gush.gushfile).to eq(path.realpath) path.delete end end end describe ".root" do it "returns root directory of Gush" do expected = Pathname.new(__FILE__).parent.parent expect(Gush.root).to eq(expected) end end describe ".configure" do it "runs block with config instance passed" do expect { |b| Gush.configure(&b) }.to yield_with_args(Gush.configuration) end end end
Version data entries
10 entries across 10 versions & 1 rubygems