Sha256: 9ca030606dd789cd48008dcae007169dc9c4d1d05620fa3037e3ada11bd34c6c

Contents?: true

Size: 652 Bytes

Versions: 4

Compression:

Stored size: 652 Bytes

Contents

module RulesEngineMacros

  def it_should_require_rules_engine_reader_access(*action)
    it "should require rules engine reader access for #{action[0]}" do
      controller.stub!(:render)
      controller.stub!(action[0].to_sym)
      controller.should_receive(:rules_engine_reader_access_required)
      get *action
    end
  end    

  def it_should_require_rules_engine_editor_access(*action)
    it "should require rules engine editor access for #{action[0]}" do
      controller.stub!(:render)
      controller.stub!(action[0].to_sym)
      controller.should_receive(:rules_engine_editor_access_required)
      get *action
    end
  end    
end  

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rules_engine-0.3.3 spec/support/macros.rb
rules_engine-0.3.2 spec/support/macros.rb
rules_engine-0.3.1 spec/support/macros.rb
rules_engine-0.3.0 spec/support/macros.rb