Sha256: ef5350616d6efadf806d40f7d31ecc1b6a5086e0720b383d8b7b95cf27d5b096
Contents?: true
Size: 949 Bytes
Versions: 5
Compression:
Stored size: 949 Bytes
Contents
require 'configure_helper' Cream.available_roles = [:guest, :admin] describe "Rails extension" do describe 'Extensions' do it "should extend Action View with Roles helper instance_methods and specific role methods" do after_init :view do :view.should be_extended_with Cream::View, :role, :host, :user_action_menu :view.should be_extended_with Cream::Helper, :role, :auth_label end init_app_railties :minimal, :view end it "should extend Action Controller" do after_init :controller do :controller.should be_extended_with Cream, :role :controller.should be_extended_with Cream::Controller, :ability :controller.should be_extended_with Cream::Helper, :role, :host, :auth_label end init_app_railties :minimal, :view end it "should work with safe_concat" do "abc".html_safe.should == "abc" end end end
Version data entries
5 entries across 5 versions & 1 rubygems