Sha256: d761168c79121169d1a1ae38933895b95394e47a5c1c26de19c514cb4d71cd37

Contents?: true

Size: 354 Bytes

Versions: 2

Compression:

Stored size: 354 Bytes

Contents

require "spec_helper"

describe Fancygrid::Grid do
  it "should get table name from model name" do
    grid = Fancygrid::Grid.new(:ticket)
    grid.record_table_name.should == "tickets"
  end
  
  it "should get table name from class constant" do
    grid = Fancygrid::Grid.new(:foo, Ticket)
    grid.record_table_name.should == "tickets"
  end
  
  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fancygrid-1.1.0 spec/grid_spec.rb
fancygrid-1.0.0 spec/grid_spec.rb