Sha256: bb59906b8730b6b1434a87e498c6e3a36408832f5bcd29a7e03b8cecc39ad201

Contents?: true

Size: 492 Bytes

Versions: 6

Compression:

Stored size: 492 Bytes

Contents

require 'spec_helper'

module Brightcontent
  describe ModelExtensions do
    let(:columns) {  ["id", "name", "body", "created_at", "updated_at", "featured", "author_id"] }
    subject(:blog) { Blog }
    its(:brightcontent_columns) { should eq columns }

    context "with extra method" do
      before { Blog.add_brightcontent_column("test_column") }
      its(:brightcontent_columns) { should eq columns + ["test_column"] }
      its(:column_names) { should eq columns }
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
brightcontent-core-2.1.5 spec/lib/brightcontent/model_extensions_spec.rb
brightcontent-core-2.1.4 spec/lib/brightcontent/model_extensions_spec.rb
brightcontent-core-2.1.3 spec/lib/brightcontent/model_extensions_spec.rb
brightcontent-core-2.1.2 spec/lib/brightcontent/model_extensions_spec.rb
brightcontent-core-2.1.1 spec/lib/brightcontent/model_extensions_spec.rb
brightcontent-core-2.1.0 spec/lib/brightcontent/model_extensions_spec.rb