test/callbacks_test.rb in fabricators-0.1.0 vs test/callbacks_test.rb in fabricators-0.1.1
- old
+ new
@@ -17,18 +17,18 @@
after(:create) { |u| u.age = 2 }
end
end
end
- test "build callbacks" do
+ test 'build callbacks' do
user = build(:user)
assert_equal 'build@example.com', user.email
assert_equal 1, user.phone
assert_equal 'build', user.name
assert_equal 1, user.age
end
- test "create callbacks" do
+ test 'create callbacks' do
user = create(:user)
assert_equal 'create@example.com', user.email
assert_equal 2, user.phone
assert_equal 'create', user.name
assert_equal 2, user.age