Sha256: dfeec87634ba48b4b9e23df9668f0cc7e872361b4539e557811512ee980e8966
Contents?: true
Size: 423 Bytes
Versions: 3
Compression:
Stored size: 423 Bytes
Contents
require "spec_helper" # For testing lambda_function_names class FakeController < Lam::BaseController def handler1; end def handler2; end end describe Lam::BaseController do describe "lambda_functions" do it "should only list public user defined methods" do controller = FakeController.new(nil, nil) expect(controller.lambda_functions).to eq( [:handler1, :handler2] ) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
lam-0.1.2 | spec/lib/lam/base_controller_spec.rb |
lam-0.1.1 | spec/lib/lam/base_controller_spec.rb |
lam-0.0.1 | spec/lib/lam/base_controller_spec.rb |