Skip to content

Commit

Permalink
fixed spec to reflect how params come in from form
Browse files Browse the repository at this point in the history
  • Loading branch information
emgord committed Mar 30, 2016
1 parent c40e808 commit 21fb60c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/controllers/admin/content_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ def base_article(options={})
it 'should merge articles' do
article2 = Factory(:article)
lambda do
get :merge, :id => @article.id, :merge_id => article2.id
get :merge, :id => @article.id, :merge_with =>{:merge_id => article2.id }
response.should redirect_to(:action => 'index')
expect(Article.find(@article.id).attributes).to_not eq @article.attributes
end.should change(Article, :count)
Expand Down Expand Up @@ -686,7 +686,7 @@ def base_article(options={})
it 'should not allow contributor to merge articles' do
article2 = Factory(:article, :user => @user)
lambda do
get :merge, :id => @article.id, :merge_id => article2.id
get :merge, :id => @article.id, :merge_with =>{:merge_id => article2.id }
response.should redirect_to(:action => 'index')
expect(Article.find(@article.id).attributes).to eq @article.attributes
end.should_not change(Article, :count)
Expand Down

0 comments on commit 21fb60c

Please sign in to comment.