lib/blueprints/configuration.rb in blueprints-0.7.3 vs lib/blueprints/configuration.rb in blueprints-0.8.0

- old
+ new

@@ -7,12 +7,10 @@ attr_accessor :prebuild # Allows passing custom root folder to use in case of non rails project. Defaults to RAILS_ROOT or current folder if RAILS_ROOT is not defined. attr_reader :root # By default blueprints runs each test in it's own transaction. This may sometimes be not desirable so this options allows to turn this off. attr_accessor :transactions - # Returns ORM that is used, default is :active_record - attr_reader :orm # Sets default attributes for all attributes def initialize self.filename = [nil, "spec", "test"].map do |dir| ["blueprint"].map do |file| @@ -22,18 +20,9 @@ end.flatten @orm = :active_record @prebuild = [] @transactions = true @root = defined?(Rails) ? Rails.root : Pathname.pwd - end - - # Allows specifying what ORM should be used. See SUPPORTED_ORMS to check what values it can contain. - def orm=(value) - if SUPPORTED_ORMS.include?(value) - @orm = value - else - raise ArgumentError, "Unsupported ORM #{value.inspect}. Blueprints supports only #{SUPPORTED_ORMS.collect(&:inspect).join(', ')}" - end end def filename=(value) @filename = Array(value).flatten.collect {|path| Pathname.new(path) } end