Sha256: b1867c8eb627855e16a6323b22f760e95c3ada826060ecf9be91b6d28e3e8245

Contents?: true

Size: 400 Bytes

Versions: 8

Compression:

Stored size: 400 Bytes

Contents

require 'spec_helper'

describe Datagrid::ActiveModel do

  class ActiveReport
    include Datagrid::ActiveModel
  end

  describe ".model_name" do
    it "should be generate from class name " do
      ActiveReport.model_name.should == "ActiveReport"
    end
    it "should have ActiveModel naming conventions" do
      ActiveReport.model_name.i18n_key.should == :active_report
    end
  end

  
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
datagrid-0.5.3 spec/datagrid/active_model_spec.rb
datagrid-0.5.2 spec/datagrid/active_model_spec.rb
datagrid-0.5.1 spec/datagrid/active_model_spec.rb
datagrid-0.5.0 spec/datagrid/active_model_spec.rb
datagrid-0.4.1 spec/datagrid/active_model_spec.rb
datagrid-0.4.0 spec/datagrid/active_model_spec.rb
datagrid-0.3.6 spec/datagrid/active_model_spec.rb
datagrid-0.3.5 spec/datagrid/active_model_spec.rb