Sha256: 6f889f7b4470073dc4a0a5d6b6b6994f1c2e7f9a9ce207812612bfc22e80f48a

Contents?: true

Size: 542 Bytes

Versions: 81

Compression:

Stored size: 542 Bytes

Contents

require 'spec_helper'

describe "ResqueAccess" do
  context "with config enabled" do
    before do
      SocialStream.resque_access = true
    end

    it "should be success" do
      get '/resque/overview'

      response.should be_success
    end
  end

  context "with config disabled" do
    before do
      SocialStream.resque_access = false
    end

    it "should be success" do
      begin
        get '/resque/overview'
        assert false
      rescue ActionController::RoutingError
        assert true
      end
    end
  end
end

Version data entries

81 entries across 81 versions & 2 rubygems

Version Path
social_stream-2.2.2 base/spec/integration/resque_access_spec.rb
social_stream-base-2.2.2 spec/integration/resque_access_spec.rb
social_stream-2.2.1 base/spec/integration/resque_access_spec.rb
social_stream-base-2.2.1 spec/integration/resque_access_spec.rb
social_stream-2.2.0 base/spec/integration/resque_access_spec.rb
social_stream-base-2.2.0 spec/integration/resque_access_spec.rb
social_stream-2.1.1 base/spec/integration/resque_access_spec.rb
social_stream-1.1.12 base/spec/integration/resque_access_spec.rb
social_stream-base-1.1.11 spec/integration/resque_access_spec.rb
social_stream-2.1.0 base/spec/integration/resque_access_spec.rb
social_stream-base-2.1.0 spec/integration/resque_access_spec.rb
social_stream-2.0.4 base/spec/integration/resque_access_spec.rb
social_stream-base-2.0.4 spec/integration/resque_access_spec.rb
social_stream-2.0.3 base/spec/integration/resque_access_spec.rb
social_stream-base-2.0.3 spec/integration/resque_access_spec.rb
social_stream-1.1.11 base/spec/integration/resque_access_spec.rb
social_stream-base-1.1.10 spec/integration/resque_access_spec.rb
social_stream-1.1.10 base/spec/integration/resque_access_spec.rb
social_stream-base-1.1.9 spec/integration/resque_access_spec.rb
social_stream-1.1.9 base/spec/integration/resque_access_spec.rb