Sha256: 167a3519b4829d550632b7681f70fc2c557a2062b27a586e3e7b2a534d1abe9b
Contents?: true
Size: 603 Bytes
Versions: 1
Compression:
Stored size: 603 Bytes
Contents
require 'spec_helper' describe RestfulController::Base do describe '.actions_to_include' do it 'accepts array' do actions = [:index, :show] RestfulController::Base.actions_to_include(actions).should eq([:index, :show]) end it 'uses :only' do actions = [{only: [:index, :show]}] RestfulController::Base.actions_to_include(actions).should eq([:index, :show]) end it 'uses :except' do actions = [{except: [:index]}] RestfulController::Base.actions_to_include(actions).should eq([:show, :edit, :update, :create, :destroy, :new]) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
restful-controller-0.0.3 | spec/restful-controller/base_spec.rb |