Sha256: 37baadaa49ae6eb0b8376ec945fb1ada045fb82102c95f6fc888b9188ccd157b

Contents?: true

Size: 413 Bytes

Versions: 2

Compression:

Stored size: 413 Bytes

Contents

module RulesEngineUsersMacros

  def it_should_require_admin_access(*action)
    it "should require admin access for #{action[0]}" do
      controller.should_receive(:admin_access_required)
      get *action
    end
  end    

  def it_should_require_login(*action)
    it "should require login access for #{action[0]}" do
      controller.should_receive(:login_required)
      get *action
    end
  end    
end  

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rules_engine_users-0.0.3 rails_generators/templates/spec/support/rules_engine_users_macros.rb
rules_engine_users-0.0.2 rails_generators/templates/spec/support/rules_engine_users_macros.rb