spec/strongbolt/bolted_controller_spec.rb
def perform action
    case action
    when :index, :new then get action
    when :show, :edit then get action, id: 1
    when :update then put :update, id: 1
    when :create then post :create
    when :destroy then delete :destroy, id: 1
    end
  end
#
# Performs the right query given the action
#
Performs the right query given the action
Performs the right query given the action
def perform action
    case action
    when :index, :new then get action
    when :show, :edit then get action, id: 1
    when :update then put :update, id: 1
    when :create then post :create
    when :destroy then delete :destroy, id: 1
    end
  end
def perform action case action when :index , :new then get action when :show , :edit then get action , id : 1 when :update then put :update , id : 1 when :create then post :create when :destroy then delete :destroy , id : 1 end end
Performs the right query given the action
Performs the right query given the action
action