This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Loading fixtures in tests

  • Loading branch information...
vinibaggio committed Mar 4, 2011
1 parent f03edd5 commit 36a1152842fe107e4aa09b01f84056fc5e06af76
Showing with 7 additions and 2 deletions.
  1. +5 −2 test/hermes/assertions_test.rb
  2. +2 −0 test/hermes/scopes_test.rb
@@ -1,6 +1,8 @@
require 'test_helper'
class AssertionsTest < Hermes::IntegrationCase
fixtures :users
context "#assert_current_path" do
setup do
visit '/users'
@@ -30,9 +32,10 @@ class AssertionsTest < Hermes::IntegrationCase
end
test "refuse if difference doesn't exist" do
# There's already a user in fixtures
msg = "\"User.count\" didn't change by 1.\n" <<
"<1> expected but was\n" <<
"<0>."
"<2> expected but was\n" <<
"<1>."
assert_failure msg do
assert_difference_on_click_button('Submit', 'User.count')
@@ -1,6 +1,8 @@
require 'test_helper'
class ScopesTest < Hermes::IntegrationCase
fixtures :users
setup do
user_a
user_b

0 comments on commit 36a1152

Please sign in to comment.