Sha256: ed88997930deb07d9c56ae74f657135cd3bc7ee32f1195ceb0dedc2cdcb68de1

Contents?: true

Size: 441 Bytes

Versions: 15

Compression:

Stored size: 441 Bytes

Contents

require 'spec_helper'

describe Datagrid::Columns::Column do
  
  describe ".inspect" do
    subject do
      class ColumnInspectTest
        include Datagrid
        scope {Entry}
        column(:id, header: "ID")
      end
      ColumnInspectTest.column_by_name(:id)
    end

    it "shows inspect information" do
      expect(subject.inspect).to eq("#<Datagrid::Columns::Column ColumnInspectTest#id {:header=>\"ID\"}>")
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
datagrid-1.6.1 spec/datagrid/columns/column_spec.rb
datagrid-1.6.0 spec/datagrid/columns/column_spec.rb
datagrid-1.5.9 spec/datagrid/columns/column_spec.rb
datagrid-1.5.8 spec/datagrid/columns/column_spec.rb
datagrid-1.5.7 spec/datagrid/columns/column_spec.rb
datagrid-1.5.6 spec/datagrid/columns/column_spec.rb
datagrid-1.5.5 spec/datagrid/columns/column_spec.rb
datagrid-1.5.4 spec/datagrid/columns/column_spec.rb
datagrid-1.5.3 spec/datagrid/columns/column_spec.rb
datagrid-1.5.2 spec/datagrid/columns/column_spec.rb
datagrid-1.5.1 spec/datagrid/columns/column_spec.rb
datagrid-1.5.0 spec/datagrid/columns/column_spec.rb
datagrid-1.4.4 spec/datagrid/columns/column_spec.rb
datagrid-1.4.3 spec/datagrid/columns/column_spec.rb
datagrid-1.4.2 spec/datagrid/columns/column_spec.rb