spec/cream/configure/rails_spec.rb in cream-0.6.0 vs spec/cream/configure/rails_spec.rb in cream-0.6.1

- old
+ new

@@ -1,7 +1,9 @@ require 'configure_helper' +require 'cream/configure' + class Role attr_accessor :name def initialize name self.name = name @@ -10,13 +12,10 @@ def self.all [Role.new('admin'), Role.new('guest')] end end -require 'cream/role' -require 'cream/configure' - 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 @@ -28,11 +27,10 @@ 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, :local_host, :auth_label - :controller.should be_extended_with Cream::Link, :session, :registration, :rest, :session + :controller.should be_extended_with Cream::Helper, :role, :host, :auth_label end init_app_railties :minimal, :view end