spec/unit/configuration_spec.rb in blueprints-0.7.3 vs spec/unit/configuration_spec.rb in blueprints-0.8.0
- old
+ new
@@ -9,12 +9,11 @@
@config.filename.should == %w{blueprint.rb blueprint/*.rb spec/blueprint.rb spec/blueprint/*.rb test/blueprint.rb test/blueprint/*.rb}.collect do |f|
Pathname.new(f)
end
end
- it "should have correct attribute values" do
- @config.orm.should == :active_record
+ it "should have correct attribute values" do\
@config.prebuild.should == []
@config.transactions.should be_true
@config.root.should == Pathname.pwd
end
@@ -24,19 +23,9 @@
Pathname.new('rails/root')
end
end
Blueprints::Configuration.new.root.should == Pathname.new('rails/root')
Object.send(:remove_const, :Rails)
- end
-
- it "should allow to set only supported orm" do
- Blueprints::Configuration::SUPPORTED_ORMS.should == [nil, :active_record]
- @config.orm = nil
- @config.orm.should be_nil
-
- lambda {
- @config.orm = :not_existing
- }.should raise_error(ArgumentError, 'Unsupported ORM :not_existing. Blueprints supports only nil, :active_record')
end
it "should set root to pathname" do
@config.root = "root"
@config.root.should == Pathname.new("root")