Skip to content

Commit

Permalink
More factory girl updates to deprication
Browse files Browse the repository at this point in the history
  • Loading branch information
amanelis committed Jan 24, 2013
1 parent c572837 commit 46fa134
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion spec/controllers/apis_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
describe ApisController do

before :each do
@user = Factory :user
@user = FactoryGirl.create(:user)
request.env['warden'].stub :authenticate! => @user
controller.stub :current_user => @user
end
Expand Down
5 changes: 2 additions & 3 deletions spec/controllers/channels_controller_spec.rb
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
require "spec_helper"

describe ChannelsController do

before :all do
@channel = Factory :channel
@channel = FactoryGirl.create(:channel)
end

before :each do
@user = Factory :user
@user = FactoryGirl.create(:user)
request.env['warden'].stub :authenticate! => @user
controller.stub :current_user => @user
end
Expand Down

0 comments on commit 46fa134

Please sign in to comment.