Created
February 4, 2013 16:22
-
-
Save carolyncole/4707764 to your computer and use it in GitHub Desktop.
rspec errors
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
1) BatchController#update should not be editable | |
Failure/Error: ability.can?(:edit, @file2).should be_false | |
expected: false value | |
got: true | |
# ./spec/controllers/batch_controller_spec.rb:47:in `block (3 levels) in <top (required)>' | |
2) BatchController#update when user does not have edit permissions on a file should not modify the object | |
Failure/Error: file.title.should == ["Original Title"] | |
expected: ["Original Title"] | |
got: ["Title Wont Change"] (using ==) | |
# ./spec/controllers/batch_controller_spec.rb:115:in `block (4 levels) in <top (required)>' | |
3) GenericFilesController#create should create and save a file asset from the given params | |
Failure/Error: saved_file.date_uploaded.should have_at_least(1).items | |
NoMethodError: | |
undefined method `items' for Mon, 04 Feb 2013:Date | |
# ./spec/controllers/generic_files_controller_spec.rb:90:in `block (3 levels) in <top (required)>' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment