Sha256: 9d8dce2c5cffd477542242d88db3de13bf310df8f830b7bea8538fbbd909ec0b

Contents?: true

Size: 907 Bytes

Versions: 5

Compression:

Stored size: 907 Bytes

Contents

require 'spec/spec_helper'

describe Scrooge::Framework::Rails do
  
  before(:each) do
    @framework = Scrooge::Framework::Rails.new
  end

  it "should be able to yield it's current environment" do
    with_rails do
      @framework.environment.should eql( 'test' )
    end
  end

  it "should be able to yield a logger" do
    with_rails do
      ::Rails.stub!(:logger).and_return('')
      ( @framework.logger << 'entry' ).should eql( 'entry' )
    end
  end
  
  it "should be able to yield it's configuration" do
    with_rails do
      @framework.config.should match( /scrooge\/spec\/config/ )
    end
  end  
  
  it "should be able to yield it's root path" do
    with_rails do
      @framework.root.should match( /scrooge\/spec/ )
    end
  end  
  
  it "should be able to yield it's tmp path" do
    with_rails do
      @framework.tmp.should match( /scrooge\/spec\/tmp/ )
    end
  end  
  
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
methodmissing-scrooge-1.0.0 spec/units/scrooge/framework/rails_spec.rb
methodmissing-scrooge-1.0.1 spec/units/scrooge/framework/rails_spec.rb
methodmissing-scrooge-1.0.2 spec/units/scrooge/framework/rails_spec.rb
methodmissing-scrooge-1.0.3 spec/units/scrooge/framework/rails_spec.rb
methodmissing-scrooge-1.0.4 spec/units/scrooge/framework/rails_spec.rb