spec/support/migrations_helper.rb in cancannible-1.0.1 vs spec/support/migrations_helper.rb in cancannible-2.0.0

- old
+ new

@@ -1,16 +1,14 @@ module MigrationsHelper - def run_migrations ActiveRecord::Base.establish_connection({ adapter: 'sqlite3', database: ':memory:' }) ActiveRecord::Migration.suppress_messages do ActiveRecord::Schema.define(:version => 0) do - create_table "members", :force => true do |t| t.string "name" t.string "email" end @@ -47,15 +45,13 @@ create_table "widgets", :force => true do |t| t.string "name" t.integer "category_id" end - end end end - end RSpec.configure do |conf| conf.include MigrationsHelper -end \ No newline at end of file +end