Sha256: 84fca3b6c8cbc5d22f25710e1dc5007b415830bdf29c5bbd903916f42d14ea9a

Contents?: true

Size: 650 Bytes

Versions: 1

Compression:

Stored size: 650 Bytes

Contents

require File.dirname(__FILE__) + '/spec'

class AutoDetectionSpec < Spec

  context 'Rails' do

    should 'link the logger object' do
      assert_equal Rails.logger, stash.default[:logger]
    end

    should 'link cycle_action to an after filter' do
      assert ActionController::Base.after_filters.include?(:cycle_action_vectors)
    end

  end

  context 'environment variables' do

    should 'pick up cluster configuration from the environment' do
      assert_equal :environment, stash.default[:cluster]
    end

    should 'pick up namespace form the environment' do
      assert_equal 'spec', stash.default[:namespace]
    end

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
remix-stash-1.0.0 spec/auto_detection_spec.rb