Permalink
Browse files

Reference top level constant so it does not potentially reference Spe…

…c::Rails instead of the real Rails.
  • Loading branch information...
1 parent b54b791 commit 18dd43db870c80dee65fe768192b03b2d7c37485 Ryan Bigg committed Mar 20, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 spec/controllers/topics_controller_spec.rb
@@ -86,7 +86,7 @@ def admin_params
end
it "should be able to create a topic with an attachment" do
- post 'create', { :forum_id => @everybody.id, :topic => { :subject => "This is a topic" }, :post => { :text => "And this is a post"}, :post_attachment => { "0" => { :file => File.open(Rails.root.join("spec", "fixtures", "photo.jpg")) } } }
+ post 'create', { :forum_id => @everybody.id, :topic => { :subject => "This is a topic" }, :post => { :text => "And this is a post"}, :post_attachment => { "0" => { :file => File.open(::Rails.root.join("spec", "fixtures", "photo.jpg")) } } }
flash[:notice].should eql(t(:created_with_attachments, :thing => "Topic", :count => 1))
end

0 comments on commit 18dd43d

Please sign in to comment.