OSDN Git Service

t#30137:fix authenticate
[pettanr/pettanr.git] / spec / controllers / panels_controller_spec.rb
index dafd395..1463f15 100644 (file)
@@ -128,8 +128,8 @@ if MagicNumber['run_mode'] == 1
   describe '単体表示に於いて' do\r
     before do\r
       @panel = FactoryGirl.create :panel, :author_id => @user.author.id\r
-      Panel.stub(:show).with(@panel.id.to_s, @author).and_return(@panel)\r
-      Panel.stub(:show).with(@panel.id.to_s, nil).and_return(@panel)\r
+      Panel.stub(:show).with(@panel.id.to_s, [@author, nil]).and_return(@panel)\r
+      Panel.stub(:show).with(@panel.id.to_s, [nil, @admin]).and_return(@panel)\r
       sign_in @user\r
     end\r
     context 'つつがなく終わるとき' do\r