lib/sequel-fixture.rb in sequel-fixture-0.0.2 vs lib/sequel-fixture.rb in sequel-fixture-0.0.3

- old
+ new

@@ -52,9 +52,14 @@ def method_missing s, *args return @data[s] if @data && @data.has_key?(s) return super end + # Forces the check to pass. Dangerous! + def force_checked! + @checked = true + end + # Assures that the tables are empty before proceeding def check return @checked if @checked # If already checked, it's alright raise MissingFixtureError, "No fixture has been loaded, nothing to check" unless @data