Sha256: fc6a9cd618fc4d5a18c4f4761951d13d03c9882f6ca4127ffcfcb580293d9296
Contents?: true
Size: 435 Bytes
Versions: 1
Compression:
Stored size: 435 Bytes
Contents
require 'rspec_ext' require "#{__FILE__.dirname}/helper" describe "ScopedParams" do it "basic" do workspace = { :params => {"book[title]" => "Super Hero"} }.to_openobject @processor = Crystal::Processors::ScopedParams.new(lambda{}) @processor.stub(:workspace).and_return(workspace) @processor.call workspace.params.should == { "book" => {"title" => "Super Hero"} } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
crystal-0.0.12 | spec/html/scoped_params_spec.rb |