Created
September 28, 2012 20:31
-
-
Save ready4god2513/3801926 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
| it "should remove previous answers before adding new ones" do | |
| question.answers.should be_empty | |
| question.answers = [Answer.new(result: result, choices: [choice])] | |
| question.answers.count.should == 1 | |
| question.answers = [Answer.new(result: result, choices: [choice2])] | |
| question.answers.count.should == 1 | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment