Sha256: 7a6824b2c4afd037c96ea91eb860e61dcfab257709ec41749424f3717e63f0ca
Contents?: true
Size: 402 Bytes
Versions: 24
Compression:
Stored size: 402 Bytes
Contents
require 'html/spec_helper' describe "ScopedParams" do it "basic" do workspace = Rad::Conveyors::Workspace.new.update(params: {"book[title]" => "Super Hero"}) @processor = Rad::Html::Processors::ScopedParams.new(lambda{}) @processor.stub(:workspace).and_return(workspace) @processor.call workspace.params.should == { book: {"title" => "Super Hero"} } end end
Version data entries
24 entries across 24 versions & 1 rubygems