Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let(:attributes) { {:email => 'adam@rails.com', :password => 'password'}}
- it "should assign the new user as company admin" do
- post :create, :user => attributes
- user = User.find_by_email! 'adam@rails.com'
- user.foo.should be_true
- end
Add Comment
Please, Sign In to add comment