Models statt nur Migrations generiert. Damit auch die Attribute in die DB bekommen.

This commit is contained in:
gchq 2011-05-04 22:50:36 +02:00
parent 8992818890
commit 3f1c7b6190
16 changed files with 159 additions and 36 deletions

19
test/fixtures/contacts.yml vendored Normal file
View file

@ -0,0 +1,19 @@
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
one:
firstname: MyString
lastname: MyString
street: MyString
housenr: MyString
plz: MyString
place: MyString
country: MyString
two:
firstname: MyString
lastname: MyString
street: MyString
housenr: MyString
plz: MyString
place: MyString
country: MyString

9
test/fixtures/mails.yml vendored Normal file
View file

@ -0,0 +1,9 @@
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
one:
desc: MyString
address: MyString
two:
desc: MyString
address: MyString

9
test/fixtures/phones.yml vendored Normal file
View file

@ -0,0 +1,9 @@
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
one:
desc: MyString
nr: MyString
two:
desc: MyString
nr: MyString

View file

@ -0,0 +1,8 @@
require 'test_helper'
class ContactTest < ActiveSupport::TestCase
# Replace this with your real tests.
test "the truth" do
assert true
end
end

8
test/unit/mail_test.rb Normal file
View file

@ -0,0 +1,8 @@
require 'test_helper'
class MailTest < ActiveSupport::TestCase
# Replace this with your real tests.
test "the truth" do
assert true
end
end

8
test/unit/phone_test.rb Normal file
View file

@ -0,0 +1,8 @@
require 'test_helper'
class PhoneTest < ActiveSupport::TestCase
# Replace this with your real tests.
test "the truth" do
assert true
end
end