Sha256: 1bbfda7cf249a7b86342f016db28102b857aa274ebe9e034038853b08bc9a7b2
Contents?: true
Size: 965 Bytes
Versions: 2
Compression:
Stored size: 965 Bytes
Contents
require 'spec_helper' require 'bait' describe Bait do it 'should have a version number' do Bait::VERSION.should_not be_nil end describe "#public" do it "returns a Pathname" do Bait.public.should be_a Pathname end it "returns the app public path" do Bait.public.to_s.split('/').last.should eq "public" end it "returns a real path" do Bait.public.should exist end end describe "#assets" do describe "#missing?" do subject { Bait.assets } context "when assets are missing" do before do Bait.assets.remove! end it { should be_missing } end context "when assets are compiled" do before do Bait.assets.remove! Bait.assets.compile! end it { should_not be_missing } end end end describe "#console" do it "provides access to STDOUT" do Bait.console.should eq STDOUT end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bait-0.5.13 | spec/lib/bait_spec.rb |
bait-0.5.12 | spec/lib/bait_spec.rb |