Displaying 1 result from an estimated 1 matches for "valid_image_attribut".
Did you mean:
valid_image_attributes
2007 Nov 09
9
fixture_file_upload and edge rspec?
...View::Helpers::JavaScriptMacrosHelper
After a couple other of tribulations, I have now gotten down to just
a couple of not passing specs, all using the fixture_file_upload.
Here''s an example
it "should be invalid if uploaded file is not an image" do
@image.attributes = valid_image_attributes.merge({:uploaded_data
=> fixture_file_upload(''/textfile.txt'',
''text/plain'')})
@image.should_not be_valid
# content_type: is not included in the list...