Sha256: c9c84a18fd4d307cbe9420acf85217356fb6a1776a2f038afb1ba32240e6f99a
Contents?: true
Size: 851 Bytes
Versions: 5
Compression:
Stored size: 851 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 end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
bait-0.5.11 | spec/lib/bait_spec.rb |
bait-0.5.10 | spec/lib/bait_spec.rb |
bait-0.5.9 | spec/lib/bait_spec.rb |
bait-0.5.6 | spec/lib/bait_spec.rb |
bait-0.5.5 | spec/lib/bait_spec.rb |