Sha256: 7ecea245d5cb44b5d15b713d61f1fef3a0b4eda04a55e3cf9d044e24e7e22c1f
Contents?: true
Size: 577 Bytes
Versions: 3
Compression:
Stored size: 577 Bytes
Contents
require 'spec_helper' class ParamAssistant < Controll::ParamAssistant param_methods :id end class MyController include Controll::ParamAssistant::Helper def params {:id => 7} end param_assistant ::ParamAssistant end describe Controll::Assistant do context 'Param assistant' do subject { ParamAssistant.new controller } let(:controller) { MyController.new } its(:controller) { should == controller } its(:params) { should == {:id => 7} } its(:id) { should == 7 } specify do controller.param(:id).should == 7 end end end
Version data entries
3 entries across 3 versions & 1 rubygems