Sha256: a0d72da9d1139dd64a8b0183e4d33c3e20e6e792b46ebed38c5eaa2964bf0382

Contents?: true

Size: 405 Bytes

Versions: 1

Compression:

Stored size: 405 Bytes

Contents

require 'html/spec_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.13 spec/html/scoped_params_spec.rb