Displaying 2 results from an estimated 2 matches for "set_the_flash".
2006 Oct 07
3
blog_id magic with typo
...f @article object.
So..in the admin/content_controller.rb:
We have:
def new_or_edit
if request.post?
set_article_author
save_attachments
logger.info("**** and blog id in article is #{@article.blog_id}")
if @article.save
set_article_categories
set_the_flash
redirect_to :action => ''show'', :id => @article.id
end
end
end
So, just before the actual save, the value printed by logger.info is
"**** and blog id in article is 2".But after @article.save is
called...whatever may be the current blog_id, the val...
2011 Jan 06
1
View specs - best practices
Howdy,
I''m trying to test some mailer views (which is no different to normal
views in terms of specs)... ran into the following problem...
In adherence to the "one expectation per ''spec''"... I''m trying to
write the following
describe "auth/mailer/signup.html.erb" do
before(:each) do
@user = Factory.build(:user)
assign(:user,