Sha256: 312834d830ee2939cc7b051c99c9de5f38828339e08472329e572a9f9b30e9e9

Contents?: true

Size: 542 Bytes

Versions: 10

Compression:

Stored size: 542 Bytes

Contents

it "should generate Permits for Guest and Admin roles"
  @generator.should generate_permits :guest, :admin
end

it "should generate Permits for Guest and Admin roles"
  @generator.should generate_permits :guest, :admin
end 


it "should inject permission exception handling into controller 'application_controller'"
  @generator.should update_controller :application do |clazz|
    clazz.should match /rescue_from CanCan::AccessDenied/
  end
end 

it "should generate 'cream' locale file"
  @generator.should generate_locale_file :cream
end 

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
cream-0.7.0 spec/generators/cream/shared_examples.rb
cream-0.6.4 spec/generators/cream/shared_examples.rb
cream-0.6.3 spec/generators/cream/shared_examples.rb
cream-0.6.1 spec/generators/cream/shared_examples.rb
cream-0.6.0 spec/generators/cream/shared_examples.rb
cream-0.5.10 spec/generators/cream/shared_examples.rb
cream-0.5.9 spec/generators/cream/shared_examples.rb
cream-0.5.8 spec/generators/cream/shared_examples.rb
cream-0.5.7 spec/generators/cream/shared_examples.rb
cream-0.5.6 spec/generators/cream/shared_examples.rb