Sha256: c3f24377fd0c40495b6f2ef9153d9d1ccdc01db3d9cd814666f30217c0af1119

Contents?: true

Size: 813 Bytes

Versions: 1

Compression:

Stored size: 813 Bytes

Contents

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))

require 'rails/all'
require 'rspec/rails'
require 'citero_renderers/ris_renderable'
require 'citero_renderers/bibtex_renderable'
require 'acts_as_citable'

# Requires supporting files with custom matchers and macros, etc,
# in ./support/ and its subdirectories.
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}


ActiveRecord::Base.establish_connection(:adapter => "sqlite3", :database => ":memory:")

ActiveRecord::Schema.define(:version => 1) do
  create_table :record_changed_fields, :force => true do |t|
    t.string :data
    t.string :from_format
  end
end

class RecordChangedField < ActiveRecord::Base
  acts_as_citable do |c|
    c.format_field = 'from_format'
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
citero_renderers-1.0.1 spec/spec_helper.rb