Sha256: 10d343ad65ebf0d9b4e355058f0d09e2a52ae50a2682253ce6054d12445d2457

Contents?: true

Size: 439 Bytes

Versions: 1

Compression:

Stored size: 439 Bytes

Contents

require "#{File.expand_path(File.dirname(__FILE__))}/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_ext-0.0.11 spec/html/scoped_params_spec.rb