lib/hornsby.rb in sinsiliux-hornsby-0.2.2 vs lib/hornsby.rb in sinsiliux-hornsby-0.2.3

- old
+ new

@@ -68,11 +68,11 @@ def self.tables ActiveRecord::Base.connection.tables - skip_tables end def self.skip_tables - %w( schema_info ) + %w( schema_info schema_migrations ) end def self.copy_ivars(to, reload = false) @@context.copy_ivars(to, reload) end @@ -137,6 +137,10 @@ module HornsbySpecHelper def hornsby_scenario(*names) Hornsby.build(*names) Hornsby.copy_ivars(self) end -end \ No newline at end of file + + def hornsby_clear + Hornsby.delete_tables + end +end