Sha256: 0d26d9e5fd62bf789fda233bf5da526c3dc13fd05d0f40a435b5b601abc0ef17

Contents?: true

Size: 1.06 KB

Versions: 16

Compression:

Stored size: 1.06 KB

Contents

#
# Copyright 2012 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

require File.dirname(__FILE__) + '/spec_helper'
require 'gem_hook'

describe 'torquebox-cache gem_hook.rb with ' do
  it "should not load torque_box_store.rb if ActiveSupport is unavailable" do
    lambda { ActiveSupport::Cache::TorqueBoxStore.should raise_error(NameError) }
  end

  it "should load torque_box_store.rb if ActiveSupport is available" do
    module ActiveSupport ; end
    load 'gem_hook.rb'
    lambda { ActiveSupport::Cache::TorqueBoxStore.should_not raise_error(NameError) }
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
torquebox-cache-3.2.0-java spec/gem_hook_spec.rb
torquebox-cache-3.1.2-java spec/gem_hook_spec.rb
torquebox-cache-3.1.1-java spec/gem_hook_spec.rb
torquebox-cache-3.1.0-java spec/gem_hook_spec.rb
torquebox-cache-3.0.2-java spec/gem_hook_spec.rb
torquebox-cache-3.0.1-java spec/gem_hook_spec.rb
torquebox-cache-3.0.0-java spec/gem_hook_spec.rb
torquebox-cache-3.0.0.beta2-java spec/gem_hook_spec.rb
torquebox-cache-3.0.0.beta1-java spec/gem_hook_spec.rb
torquebox-cache-2.3.2-java spec/gem_hook_spec.rb
torquebox-cache-2.3.1-java spec/gem_hook_spec.rb
torquebox-cache-2.3.0-java spec/gem_hook_spec.rb
torquebox-cache-2.2.0-java spec/gem_hook_spec.rb
torquebox-cache-2.1.2-java spec/gem_hook_spec.rb
torquebox-cache-2.1.1-java spec/gem_hook_spec.rb
torquebox-cache-2.1.0-java spec/gem_hook_spec.rb