spec/schema_generator_spec.rb in sequel-0.4.4 vs spec/schema_generator_spec.rb in sequel-0.4.4.1

- old
+ new

@@ -1,17 +1,17 @@ require File.join(File.dirname(__FILE__), 'spec_helper') describe Sequel::Schema::Generator do before :all do - @generator = Sequel::Schema::Generator.new(SchemaDummyDatabase.new, :items) do + @generator = Sequel::Schema::Generator.new(SchemaDummyDatabase.new) do string :title column :body, :text foreign_key :parent_id primary_key :id index :title index [:title, :body] end - @table_name, @columns, @indexes = @generator.create_info + @columns, @indexes = @generator.create_info end {:name => :id, :primary_key => true}.each do |column, expected| it "uses default primary key #{column}" do @columns.first[column].should == expected \ No newline at end of file