Sha256: db919314a6815d680d563c007246c486166d4ecac7cb92ad3b86e319fc24bced

Contents?: true

Size: 378 Bytes

Versions: 6

Compression:

Stored size: 378 Bytes

Contents

require 'active_record'

ActiveRecord::Base.establish_connection adapter: "sqlite3", database: ":memory:"

ActiveRecord::Migration.create_table :widgets do |t|
  t.string :name
  t.timestamps
end

class Widget < ActiveRecord::Base
  # some dummy methods for setting message expectations in specs
  def self.before_stuff; end
  def self.transform_a_widget(widget); true; end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
scripterator-1.2.0 spec/support/widget.rb
scripterator-1.2.0.pre1 spec/support/widget.rb
scripterator-1.1.0 spec/support/widget.rb
scripterator-1.0.0 spec/support/widget.rb
scripterator-0.1.1 spec/support/widget.rb
scripterator-0.1.0 spec/support/widget.rb