Skip to content

Commit

Permalink
fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ksylvest committed Jan 11, 2013
1 parent a0cca4d commit 52f5407
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions test/dummy/db/schema.rb
Expand Up @@ -24,14 +24,14 @@
t.string "avatar_identifier"
t.string "avatar_extension"
t.integer "avatar_size"
t.datetime "created_at"
t.datetime "updated_at"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end

create_table "groups", :force => true do |t|
t.string "name"
t.datetime "created_at"
t.datetime "updated_at"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end

create_table "users", :force => true do |t|
Expand Down
12 changes: 6 additions & 6 deletions test/dummy/test/integration/contact_form_test.rb
Expand Up @@ -16,7 +16,7 @@ class ContactFormTest < ActionDispatch::IntegrationTest
end
assert_select("label", "Details")
assert_select(".hint", "a detailed description")
assert_select(".error", "can't be blank")
assert_select(".error", "can&#x27;t be blank")
end

assert_select(".block.name") do
Expand All @@ -25,7 +25,7 @@ class ContactFormTest < ActionDispatch::IntegrationTest
end
assert_select("label", "Name")
assert_select(".hint", "first and last name")
assert_select(".error", "can't be blank")
assert_select(".error", "can&#x27;t be blank")
end

assert_select(".block.email") do
Expand All @@ -34,7 +34,7 @@ class ContactFormTest < ActionDispatch::IntegrationTest
end
assert_select("label", "Email")
assert_select(".hint", "sample@example.com")
assert_select(".error", "can't be blank and is not valid")
assert_select(".error", "can&#x27;t be blank and is not valid")
end

assert_select(".block.phone") do
Expand All @@ -43,7 +43,7 @@ class ContactFormTest < ActionDispatch::IntegrationTest
end
assert_select("label", "Phone")
assert_select(".hint", "+01 (555) 555-5555")
assert_select(".error", "can't be blank and is not valid")
assert_select(".error", "can&#x27;t be blank and is not valid")
end

assert_select(".block.url") do
Expand All @@ -52,7 +52,7 @@ class ContactFormTest < ActionDispatch::IntegrationTest
end
assert_select("label", "Website")
assert_select(".hint", "http://example.com/")
assert_select(".error", "can't be blank")
assert_select(".error", "can&#x27;t be blank")
end

assert_select(".block.avatar") do
Expand All @@ -69,7 +69,7 @@ class ContactFormTest < ActionDispatch::IntegrationTest
assert_select("option", "Developer")
end
end
assert_select(".error", "can't be blank")
assert_select(".error", "can&#x27;t be blank")
assert_select("label", "Group")
end

Expand Down

0 comments on commit 52f5407

Please sign in to comment.