Sha256: 6ece172b68b2a269450ab3f5fbede31159c32fc5f5828a4c5c65d7934ec62bcd

Contents?: true

Size: 421 Bytes

Versions: 11

Compression:

Stored size: 421 Bytes

Contents

require File.dirname(__FILE__) + '/../model/form'
require File.dirname(__FILE__) + '/../model/field'

describe Form do
  it 'should update the value of a field on the form' do
    form = Form.new(:blah => "")
    form.update(:blah => "foo")
    form[:blah].should eql("foo")
  end
  
  it 'should find the value of a field in the form' do
    form = Form.new(:blah => "foo")
    form[:blah].should eql("foo")
  end
  
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
starapor-slippers-0.0.2 examples/forms/spec/form_spec.rb
starapor-slippers-0.0.3 examples/forms/spec/form_spec.rb
starapor-slippers-0.0.5 examples/forms/spec/form_spec.rb
starapor-slippers-0.0.6 examples/forms/spec/form_spec.rb
starapor-slippers-0.0.8 examples/forms/spec/form_spec.rb
starapor-slippers-0.0.9 examples/forms/spec/form_spec.rb
slippers-0.0.14 examples/forms/spec/form_spec.rb
slippers-0.0.13 examples/forms/spec/form_spec.rb
slippers-0.0.12 examples/forms/spec/form_spec.rb
slippers-0.0.11 examples/forms/spec/form_spec.rb
slippers-0.0.10 examples/forms/spec/form_spec.rb