Created
June 23, 2011 20:25
-
-
Save deathbob/1043544 to your computer and use it in GitHub Desktop.
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
| require 'spec_helper' | |
| describe Gig do | |
| before do | |
| @gig = Gig.new | |
| @gig.save | |
| end | |
| it "should belong to a user and validate the presence of a user" do | |
| @gig.errors.should have(1).errors_on(:user) | |
| end | |
| it "by default, it should not be featured " do | |
| assert !@gig.featured | |
| end | |
| it 'should not be approved by default' do | |
| assert !@gig.approved | |
| end | |
| it 'should be enabled by default' do | |
| assert @gig.enabled | |
| end | |
| end | |
brentkirby
commented
Jun 23, 2011
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment