Sha256: 01c08b42e18cc3aee15857ef4dcc79435628087090911a0d5836cd8dc798b5c7

Contents?: true

Size: 502 Bytes

Versions: 18

Compression:

Stored size: 502 Bytes

Contents

require 'spec_helper'

module Brightcontent
  describe ModelExtensions do
    let(:columns) {  ["id", "name", "body", "created_at", "updated_at", "featured", "author_id", "active"] }
    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

18 entries across 18 versions & 1 rubygems

Version Path
brightcontent-core-2.6.0 spec/lib/brightcontent/model_extensions_spec.rb
brightcontent-core-2.5.1 spec/lib/brightcontent/model_extensions_spec.rb
brightcontent-core-2.5.0 spec/lib/brightcontent/model_extensions_spec.rb
brightcontent-core-2.4.6 spec/lib/brightcontent/model_extensions_spec.rb
brightcontent-core-2.4.5 spec/lib/brightcontent/model_extensions_spec.rb
brightcontent-core-2.4.4 spec/lib/brightcontent/model_extensions_spec.rb
brightcontent-core-2.4.3 spec/lib/brightcontent/model_extensions_spec.rb
brightcontent-core-2.4.2 spec/lib/brightcontent/model_extensions_spec.rb
brightcontent-core-2.4.1 spec/lib/brightcontent/model_extensions_spec.rb
brightcontent-core-2.4.0 spec/lib/brightcontent/model_extensions_spec.rb
brightcontent-core-2.3.4 spec/lib/brightcontent/model_extensions_spec.rb
brightcontent-core-2.3.3 spec/lib/brightcontent/model_extensions_spec.rb
brightcontent-core-2.3.2 spec/lib/brightcontent/model_extensions_spec.rb
brightcontent-core-2.3.1 spec/lib/brightcontent/model_extensions_spec.rb
brightcontent-core-2.3.0 spec/lib/brightcontent/model_extensions_spec.rb
brightcontent-core-2.2.2 spec/lib/brightcontent/model_extensions_spec.rb
brightcontent-core-2.2.1 spec/lib/brightcontent/model_extensions_spec.rb
brightcontent-core-2.2.0 spec/lib/brightcontent/model_extensions_spec.rb