Sha256: a3413e53ac4f42b9d0ec92c4db148f005b8ac972d4ee996c4de8a9ad41936b2f
Contents?: true
Size: 956 Bytes
Versions: 1
Compression:
Stored size: 956 Bytes
Contents
require 'spec_helper' describe Gush do describe ".gushfile" do let(:path) { Pathname("/tmp/Gushfile.rb") } context "Gushfile.rb is missing from pwd" do it "raises an exception" do path.delete if path.exist? Gush.configuration.gushfile = path expect { Gush.gushfile }.to raise_error(Thor::Error) end end context "Gushfile.rb 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.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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gush-0.0.1 | spec/lib/gush_spec.rb |