Sha256: 39b37917f62ee220a85b4c3d078c3d9af4f188935f33eb4feda6316c6e35a869

Contents?: true

Size: 372 Bytes

Versions: 16

Compression:

Stored size: 372 Bytes

Contents

require "spec_helper"

describe Fume::Cancan do
  before(:each) do
    Fume::Cancan.try_enable
    @controller_class = Class.new(ActionController::Base)
  end

  it "should add method to action controller base" do
    @controller_class.methods.should be_include "authorize_namespace"
    @controller_class.instance_methods.should be_include "authorize_namespace"
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
fume-0.8.1a spec/fume/cancan_spec.rb
fume-0.8.0 spec/fume/cancan_spec.rb
fume-0.8.0b spec/fume/cancan_spec.rb
fume-0.8.0a spec/fume/cancan_spec.rb
fume-0.7.2 spec/fume/cancan_spec.rb
fume-0.7.1 spec/fume/cancan_spec.rb
fume-0.7.0 spec/fume/cancan_spec.rb
fume-0.6.7 spec/fume/cancan_spec.rb
fume-0.6.6 spec/fume/cancan_spec.rb
fume-0.6.4 spec/fume/cancan_spec.rb
fume-0.6.3 spec/fume/cancan_spec.rb
fume-0.6.2 spec/fume/cancan_spec.rb
fume-0.6.1 spec/fume/cancan_spec.rb
fume-0.6.0 spec/fume/cancan_spec.rb
fume-0.5.3 spec/fume/cancan_spec.rb
fume-0.5.2 spec/fume/cancan_spec.rb