Sha256: 90c14716ac83071b1d03f56713404ead1f84b1d51312a4b2cb4cd624f633af1d
Contents?: true
Size: 594 Bytes
Versions: 5
Compression:
Stored size: 594 Bytes
Contents
require 'spec_helper' module ApiTaster describe FormBuilder do context "empty params" do it "has empty buffer" do builder = FormBuilder.new({}) builder.instance_variable_get(:@_buffer).length.should == 0 end end let(:builder) do FormBuilder.new({ :hello => 'world', :nested => { :foo => 'bar' } }) end it "inserts data into the buffer" do builder.instance_variable_get(:@_buffer).length.should > 0 end it "outputs html" do builder.html.should match('bar') end end end
Version data entries
5 entries across 5 versions & 1 rubygems