Sha256: 6eade4dcb88dec4c43c6808a3d9291ffea9c0daa2d69995369a99804d5863f4d
Contents?: true
Size: 635 Bytes
Versions: 3
Compression:
Stored size: 635 Bytes
Contents
require 'spec_helper' describe Formic::File do before(:each) do @model = Object.new stub(@page = Object.new).url_for(@model) {'/models/1'} stub(@page).render @options = {} @block = Proc.new {} end context "#file" do before(:each) do @input = Formic::File.new @page, 'name', @options, &@block end it "should have template formic/default/input" do @input.template.should == 'formic/default/input' end it "should have type file" do @input.options[:type].should == 'file' end it "should set field value" do @input.field.should == 'name' end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
formic-0.2.5 | spec/formic/file_spec.rb |
formic-0.2.1 | spec/formic/file_spec.rb |
formic-0.1.0 | spec/formic/file_spec.rb |