Sha256: a8ff84b83a0d851eb977840ddb72b79b7f62bbc0e629c95af1d83c659ad5b991

Contents?: true

Size: 647 Bytes

Versions: 16

Compression:

Stored size: 647 Bytes

Contents

describe "Check Row" do
  tests_row :check

  it "should initialize with correct settings" do
    @row.object.class.should == Formotion::RowType::CheckRow
  end

  # Value
  it "should be unchecked by default" do
    cell = @row.make_cell
    cell.accessoryType.should == UITableViewCellAccessoryNone
  end

  it "should be checked when true" do
    @row.value = true
    cell = @row.make_cell
    cell.accessoryType.should == UITableViewCellAccessoryCheckmark
  end

  it "should bind its accessory" do
    @row.value = true
    cell = @row.make_cell

    @row.value = false
    cell.accessoryType.should == UITableViewCellAccessoryNone
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
formotion-1.8 spec/row_type/check_spec.rb
formotion-1.7 spec/row_type/check_spec.rb
formotion-1.6 spec/row_type/check_spec.rb
formotion-1.5.1 spec/row_type/check_spec.rb
formotion-1.5.0 spec/row_type/check_spec.rb
formotion-1.4.0 spec/row_type/check_spec.rb
formotion-1.3.1 spec/row_type/check_spec.rb
formotion-1.3 spec/row_type/check_spec.rb
formotion-1.2 spec/row_type/check_spec.rb
formotion-1.1.5 spec/row_type/check_spec.rb
formotion-1.1.4 spec/row_type/check_spec.rb
formotion-1.1.3 spec/row_type/check_spec.rb
formotion-1.1.2 spec/row_type/check_spec.rb
formotion-1.1.1 spec/row_type/check_spec.rb
formotion-1.1 spec/row_type/check_spec.rb
formotion-1.0 spec/row_type/check_spec.rb