This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
NewerOlder