Sha256: 4e589ee304707f09d385ea683a110e0a93f648c5067c8d1b64a611b26d69328c
Contents?: true
Size: 912 Bytes
Versions: 10
Compression:
Stored size: 912 Bytes
Contents
describe "Text Row" do tests_row :text it "should initialize with correct settings" do @row.object.class.should == Formotion::RowType::TextRow end # Value it "should have no value by default" do cell = @row.make_cell @row.text_field.text.should == '' end it "should use custom value" do @row.value = 'init value' cell = @row.make_cell @row.text_field.text.should == 'init value' end it "should bind row.value" do @row.value = 'init value' cell = @row.make_cell @row.value = "new value" @row.text_field.text.should == 'new value' end # Placeholder it "should have no placeholder by default" do cell = @row.make_cell @row.text_field.placeholder.should == nil end it "should use custom placeholder" do @row.placeholder = 'placeholder' cell = @row.make_cell @row.text_field.placeholder.should == 'placeholder' end end
Version data entries
10 entries across 10 versions & 1 rubygems