Sha256: d5c60bb351f7946c012543b0fd23caeb6c44bf43e92f9dc7d5017c9615d0f7d2
Contents?: true
Size: 771 Bytes
Versions: 4
Compression:
Stored size: 771 Bytes
Contents
require 'spec_helper' describe Baldwin do before { Baldwin.env! } describe '#env!' do it 'should set BALDWIN_RAILS_NAME' do ENV[ 'BALDWIN_RAILS_NAME' ].should == "rails-#{Rails::VERSION::STRING}" end it 'should set BALDWIN_RAILS_PATH' do ENV[ 'BALDWIN_RAILS_PATH' ].should == "spec/rails/#{ENV[ 'BALDWIN_RAILS_NAME' ]}" end end describe '#root' do subject { Baldwin.root } it { should be_a( Pathname ) } its( :to_s ){ should eq( Dir.pwd ) } end describe '#rails' do subject { Baldwin.rails } it { should be_a( Pathname ) } its( :to_s ){ should eq( File.join( Dir.pwd, ENV[ 'BALDWIN_RAILS_PATH' ] ) ) } end describe '#apps' do subject { Baldwin.apps } it { should be_an( Array ) } end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
baldwin-0.2.6 | spec/baldwin/paths_spec.rb |
baldwin-0.2.5 | spec/baldwin/paths_spec.rb |
baldwin-0.2.4 | spec/baldwin/paths_spec.rb |
baldwin-0.2.3 | spec/baldwin/paths_spec.rb |