Skip to content

Commit

Permalink
Add :file for valid_attributes
Browse files Browse the repository at this point in the history
965fe45 has changed Stuff class to
require a file to be uploaded. So the test fails.
  • Loading branch information
sorah committed May 24, 2014
1 parent 5377d53 commit a513ae7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion spec/controllers/stuffs_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@
# This should return the minimal set of attributes required to create a valid
# Stuff. As you add validations to Stuff, be sure to
# adjust the attributes here as well.
let(:valid_attributes) { { "title" => "MyString" } }
let(:valid_attributes) do
{
title: "MyString",
file: fixture_file_upload('a.png'),
}
end

# This should return the minimal set of values that should be in the session
# in order to pass any filters (e.g. authentication) defined in
Expand Down
Binary file added spec/fixtures/a.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a513ae7

Please sign in to comment.