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

Version Path
rad_core-0.2.6 spec/html/scoped_params_spec.rb
rad_core-0.2.5 spec/html/scoped_params_spec.rb
rad_core-0.2.4 spec/html/scoped_params_spec.rb
rad_core-0.2.3 spec/html/scoped_params_spec.rb
rad_core-0.2.2 spec/html/scoped_params_spec.rb
rad_core-0.2.1 spec/html/scoped_params_spec.rb
rad_core-0.2.0 spec/html/scoped_params_spec.rb
rad_core-0.0.30 spec/html/scoped_params_spec.rb
rad_core-0.0.29 spec/html/scoped_params_spec.rb
rad_core-0.0.28 spec/html/scoped_params_spec.rb
rad_core-0.0.27 spec/html/scoped_params_spec.rb
rad_core-0.0.26 spec/html/scoped_params_spec.rb
rad_core-0.0.25 spec/html/scoped_params_spec.rb
rad_core-0.0.24 spec/html/scoped_params_spec.rb
rad_core-0.0.23 spec/html/scoped_params_spec.rb
rad_core-0.0.22 spec/html/scoped_params_spec.rb
rad_core-0.0.21 spec/html/scoped_params_spec.rb
rad_core-0.0.20 spec/html/scoped_params_spec.rb
rad_core-0.0.19 spec/html/scoped_params_spec.rb
rad_core-0.0.18 spec/html/scoped_params_spec.rb