Created
August 13, 2012 18:58
-
-
Save wnstn/3343260 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
→ rspec spec/ | |
1) School scopes#for_user ValEdAdmin should return the list of schools for the admin | |
Failure/Error: School.for_user(user).should == [school_1, school_2] | |
expected: [#<School id: 2358, district_id: 3016, name: "Test School", school_type: "public", created_at: "2012-08-13 18:54:16", updated_at: "2012-08-13 18:54:16", deleted_at: nil>, #<School id: 2359, district_id: 3017, name: "Test School", school_type: "public", created_at: "2012-08-13 18:54:17", updated_at: "2012-08-13 18:54:17", deleted_at: nil>] | |
got: [#<School id: 2359, district_id: 3017, name: "Test School", school_type: "public", created_at: "2012-08-13 18:54:17", updated_at: "2012-08-13 18:54:17", deleted_at: nil>, #<School id: 2358, district_id: 3016, name: "Test School", school_type: "public", created_at: "2012-08-13 18:54:16", updated_at: "2012-08-13 18:54:16", deleted_at: nil>] (using ==) | |
Diff: | |
@@ -1,3 +1,2 @@ | |
-[#<School id: 2358, district_id: 3016, name: "Test School", school_type: "public", created_at: "2012-08-13 18:54:16", updated_at: "2012-08-13 18:54:16", deleted_at: nil>, | |
- #<School id: 2359, district_id: 3017, name: "Test School", school_type: "public", created_at: "2012-08-13 18:54:17", updated_at: "2012-08-13 18:54:17", deleted_at: nil>] | |
+[#<School id: 2359, district_id: 3017, name: "Test School", school_type: "public", created_at: "2012-08-13 18:54:17", updated_at: "2012-08-13 18:54:17", deleted_at: nil>, #<School id: 2358, district_id: 3016, name: "Test School", school_type: "public", created_at: "2012-08-13 18:54:16", updated_at: "2012-08-13 18:54:16", deleted_at: nil>] | |
# ./spec/models/school_spec.rb:46:in `block (5 levels) in <top (required)>' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment